当前位置:网站首页>Animation - Introduction to keyframes
Animation - Introduction to keyframes
2022-04-23 06:24:00 【Wood acridine】
Animation —Keyframes Introduce
Animation Animation
css3 by Animation Several properties provided by animation are as follows :
animation-name: Specify the name of the animation , This attribute specifies an existing keyframe definition .
animation-duration: Specify animation duration .
animation-timing-funtion: Specifies the speed at which the animation changes .
animation-delay: Specifies how long the animation will be delayed before it starts executing .
animation-iteration-count: Specifies the number of times the animation is cycled .
animation: This is a composite property . The format of this attribute is :
animation:animation-name animation-duration animation-timing-function animation-delay animation-iteration-count.
keyframes( Keyframes ): Computer animation terminology , frame —— Is the smallest single image in the animation , It's equivalent to every frame of film . On the timeline of animation software, the frame is represented as a grid or a mark .
Keyframes —— Equivalent to in 2D animation Original painting . It refers to the frame where the key action in the movement or change of a character or object is located . The animation between key frames can be created by software , It's called a transition frame or an intermediate frame .
keyframes They are called keyframes , It is similar to Flash Keyframes in . stay CSS3 Among them, mainly “@keyframes” start , Followed by the animation name plus a pair of curly braces “{…}”, In brackets are some rules for different time periods .
@keyframes changecolor{
0%{
background: red;
}
50%{
background: red;
}
100%{
background: green;
}
}
In a “@keyframes” A style rule in can consist of multiple percentages ,
If in “0%” To “100%” Create more percentages between , Add different styles to the elements that need animation effect in each percentage ,
So as to achieve a changing effect .
Call animation
animation-name attribute : It is mainly used to call @keyframes Defined animation .
Special attention required : animation-name The animation name to be called needs and “@keyframes” The defined animation names are exactly the same ( Case sensitive ),
If inconsistent, it will not have any animation effect .
Property value :
none: The default value is . The duty of none when , There will be no animation , This can be used to override any animation .
“@keyframes” Defined animation name .
版权声明
本文为[Wood acridine]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210616405555.html
边栏推荐
- 3. Continuous integer
- Addition, deletion, modification and query of MySQL table
- Techniques et principes de détection
- DBCP usage
- A general U-shaped transformer for image restoration
- Troubleshooting of data deleted and reappeared problems
- Example of reentrant lock thread waiting to wake up
- 程序設計訓練
- Chapter 4 of line generation - linear correlation of vector systems
- ValueError: loaded state dict contains a parameter group that doesn‘t match the size of optimizer‘s
猜你喜欢
线性代数第三章-矩阵的初等变换与线性方程组
線性代數第一章-行列式
PyTorch笔记——实现线性回归完整代码&手动或自动计算梯度代码对比
Pyqt5 learning (I): Layout Management + signal and slot association + menu bar and toolbar + packaging resource package
自动控制(韩敏版)
Integration and induction of knowledge points of automatic control principle (Han min version)
Pytorch learning record (V): back propagation + gradient based optimizer (SGD, adagrad, rmsporp, Adam)
Fundamentals of in-depth learning -- a simple understanding of meta learning (from Li Hongyi's course notes)
線性代數第二章-矩陣及其運算
Advanced operation of idea debug
随机推荐
Installation and usage skills of idea
Pytorch learning record (V): back propagation + gradient based optimizer (SGD, adagrad, rmsporp, Adam)
Framework analysis 2 Source code - login authentication
自動控制(韓敏版)
Graphic numpy array matrix
[leetcode 67] sum of two binary numbers
Viewer: introduce MySQL date function
Explain of MySQL optimization
Kalman filter and inertial integrated navigation
Fundamentals of digital image processing (Gonzalez) I
5.The Simple Problem
卡尔曼滤波与惯性组合导航
Supply chain service terms
How to use comparative learning to do unsupervised - [cvpr22] training & [eccv20] image translation
JSP syntax and JSTL tag
线性代数第二章-矩阵及其运算
编程记录——图片旋转函数scipy.ndimage.rotate()的简单使用和效果观察
Code neat way to learn
Automatic control (Han min version)
去噪论文阅读——[CVPR2022]Blind2Unblind: Self-Supervised Image Denoising with Visible Blind Spots