当前位置:网站首页>Mobile terminal layout (3D conversion, animation)
Mobile terminal layout (3D conversion, animation)
2022-04-23 08:05:00 【GuTaiWEI】
Record what you have learned , Welcome comments and corrections .
3D transformation
3D Coordinate system
-
X Axis The bigger to the right , It's a positive value , Otherwise, vice versa
-
Y Axis The bigger down , It's a positive value , Otherwise, vice versa
-
Z Axis ( Point to us ) The bigger it is , It's a positive value , Otherwise, vice versa
3D Displacement
Grammar format :
// Conform to the writing method
transform: translate3d(x, y,z);
// Write separately
transform: translateX(100px);
transform: translateY(100px);
transform: translateZ(100px);
perspective
Grammar format :
perspective: 800px;
Be careful
- The value range is often in 800px ~ 1200px Between .
- Sure father add to
- Perspective distance is also called sight distance , The so-called visual distance is the distance from the human eye to the screen .
3D rotate
rotate -rotate3d: Means that elements can be moved along in a three-dimensional plane x Axis ,y Axis ,z Rotate axis or custom axis grammar
Grammar format :
//x Axis y Rotate in a positive direction 45 degree
transform:rotateX(45deg)
//y The axis rotates in a positive direction 45 degree
transform:rotateY(45deg)
//Z The axis rotates in a positive direction 45 degree
transform:rotateZ(45deg)
// Rotate along a custom axis deg For angle
transform:rotate3d(x,y,z,deg)
The zoom
Grammar format :
scale(width( wide ) Multiple ,height( high ) Multiple )
scaleX()
scaleY()
scaleZ()
scale3d(x,y,z)
<br>
Stereoscopic presentation
Let the child box have space in the parent box , At this time, you can give father add to
Grammar format :
transform-style: preserve-3d;
Animation
Define animation
keyframes Define animation
// percentage
@keyframes The name of the animation {
0%{
style
}
100%{
style
}
//from to
@keyframes dance {
from {
transform: scale(1)
}
to {
transform: scale(1.5)
}
}
- 0% It's the beginning of animation ,100% It's the end of the animation . Such a rule is an animation sequence
- stay @keyframes To stipulate in CSS style , You can create animation effects that gradually change from the current style to the new one
- Animation is the effect of gradually changing elements from one style to another , You can change any number of styles and times
- Specify the time of change in percentage , Or use the key words "from" and "to", Equate to 0% and 100%
Animation uses
Grammar format :
Attribute values can be written in no order
attribute :
Animation speed curve
animation-timing-function:
Speed curve of specified animation , The default is "ease"
Reference resources
Animation +3D Convert notes _blink555 The blog of -CSDN Blog
版权声明
本文为[GuTaiWEI]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230624538889.html
边栏推荐
- Essays (updated from time to time)
- Redis transaction implements optimistic locking principle
- LeetCode 1611. 使整数变为 0 的最少操作次数
- 第四章 无形资产
- Move layout (Flex layout, viewport label)
- MySQL--锁的奥秘--数据怎么锁
- 面试学习路线
- Go语学习笔记 - 结构体 | 从零开始Go语言
- FUEL: Fast UAV Exploration using Incremental Frontier Structure and Hierarchical Planning
- MYSQL——第一章节(数据类型2)
猜你喜欢
CTF-MISC总结
Go语学习笔记 - Slice、Map | 从零开始Go语言
SAP GUI安全性
About USB flash drive data prompt raw, need to format, data recovery notes
Feign source code analysis
国基北盛-openstack-容器云-环境搭建
C # control the camera, rotate and drag the observation script (similar to scenes observation mode)
Cloud computing skills competition -- Part 2 of openstack private cloud environment
内网渗透系列:内网隧道之pingtunnel
Mysql database backup and recovery under Linux (full + incremental)
随机推荐
strcat()、strcpy()、strcmp()、strlen()
Research on system and software security (I)
内网渗透系列:内网隧道之dns2tcp
【问题解决】VS2019解决编译生成的exe文件打不开的情况
Analysis of Nacos source code
nacos源码分析思路
第五章 投资性房地产
Go语学习笔记 - Slice、Map | 从零开始Go语言
读书笔记
Complete learning from scratch, machine learning and deep learning, including theory and code implementation, mainly using scikit and mxnet, and some practices (on kaggle)
Talking about distributed storage from ES, mongodb, redis and rocketmq
《内网安全攻防:渗透测试实战指南》读书笔记(八):权限维持分析及防御
How does feign integrate hystrix
内网渗透系列:内网隧道之icmptunnel(jamesbarlow师傅的)
Alibaba sentinel learning QA
Dvwa 靶场练习记录
Research on software security based on NLP (I)
内网渗透系列:内网隧道之icmp_tran
Research on system and software security (3)
Codeforces Round #784 (Div. 4)