当前位置:网站首页>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
边栏推荐
- Implementation of displaying database pictures to browser tables based on thymeleaf
- D. Optimal partition segment tree optimization DP
- Detection technology and principle
- [transfer] MySQL: how many rows of data can InnoDB store in a B + tree?
- 自动控制(韩敏版)
- 图像恢复论文——[RED-Net, NIPS16]Image Restoration Using Very Deep Convolutional Encoder-Decoder Networks wi
- Best practices for MySQL storage time
- Stability building best practices
- Pytoch -- data loading and processing
- JSP syntax and JSTL tag
猜你喜欢

Pytorch notes - complete code for linear regression & manual or automatic calculation of gradient code comparison

20 excellent plug-ins recommended by idea

编程记录——图片旋转函数scipy.ndimage.rotate()的简单使用和效果观察
![Denoising paper - [noise2void, cvpr19] noise2void learning denoising from single noise images](/img/9d/487c77b5d25d3e37fb629164c804e2.png)
Denoising paper - [noise2void, cvpr19] noise2void learning denoising from single noise images

JDBC connection database
![去噪论文阅读——[CVPR2022]Blind2Unblind: Self-Supervised Image Denoising with Visible Blind Spots](/img/fd/84df62c88fe90a73294886642036a0.png)
去噪论文阅读——[CVPR2022]Blind2Unblind: Self-Supervised Image Denoising with Visible Blind Spots

线性代数第一章-行列式

A sharp tool to improve work efficiency

In depth source code analysis servlet first program

Integration and induction of knowledge points of automatic control principle (Han min version)
随机推荐
Preparedstatement prevents SQL injection
Illustrate the significance of hashcode
[leetcode 202] happy number
5.The Simple Problem
D. Optimal partition segment tree optimization DP
Pytorch notes - get familiar with the network construction method by building RESNET (complete code)
MySQL table constraints and table design
1. Calculate a + B
Generate excel template (drop-down selection, multi-level linkage)
2. Average length of words
Code neat way to learn
卡尔曼滤波与惯性组合导航
Rainbow (DP)
Calculation (enter the calculation formula to get the result)
Fact final variable and final variable
Collections multiple parameter sorting
ValueError: loaded state dict contains a parameter group that doesn‘t match the size of optimizer‘s
Custom exception class
Optional best practices
Pytorch notes - complete code for linear regression & manual or automatic calculation of gradient code comparison