当前位置:网站首页>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
边栏推荐
- TA notes of Zhuang understand (VII) < Lambert + Phong + shadow + 3evcolor + Ao >
- 《内网安全攻防:渗透测试实战指南》读书笔记(五):域内横向移动分析及防御
- Ignis公链的NFT生态发展:Unicorn.art的捐赠开发之路
- Intranet security attack and defense: a practical guide to penetration testing (6): domain controller security
- Internal network security attack and defense: a practical guide to penetration testing (IV): Authority improvement analysis and defense
- Go语学习笔记 - 语言接口 | 从零开始Go语言
- 雲計算技能大賽 -- openstack私有雲環境 第一部分
- The displayed amount of ABAP ALV is inconsistent with the exported amount
- Reading notes
- About USB flash drive data prompt raw, need to format, data recovery notes
猜你喜欢

Go语学习笔记 - 异常处理 | 从零开始Go语言

CTF攻防世界刷题51-

Cloud computing skills competition -- the first part of openstack private cloud environment

LeetCode 1611. 使整数变为 0 的最少操作次数

SAP GUI security

Cloud computing skills competition -- Part 2 of openstack private cloud environment

Feign source code analysis

BUUCTF MISC刷題

Ctf-misc summary

内网渗透系列:内网隧道之icmp_tran
随机推荐
MySQL--锁的奥秘--数据怎么锁
KCD_ EXCEL_ OLE_ TO_ INT_ Convert reports an error sy subrc = 2
内网渗透系列:内网隧道之pingtunnel
When using flash, the code ends automatically without an error, the connection cannot be maintained, and the URL cannot be accessed.
Research on system and software security (3)
A series of articles, a summary of common vulnerabilities of Web penetration (continuously updated)
第四章 无形资产
第五章 投资性房地产
第七章 资产减值
《内网安全攻防:渗透测试实战指南》读书笔记(八):权限维持分析及防御
使用 Ingress 实现金丝雀发布
RGB color to hex and unit conversion
The displayed amount of ABAP ALV is inconsistent with the exported amount
Ctf-misc learning from start to give up
Intranet penetration series: ICMP of Intranet tunnel_ Tran
A programmer who works four hours a day
TA notes of Zhuang understand (zero) < bedding and learning methods >
Research on system and software security (2)
Introduction to sap query enhanced development
strcat()、strcpy()、strcmp()、strlen()