这个animation
property 是以下属性的简写:
笔记:始终指定动画持续时间属性,否则持续时间为 0,并且永远不会播放。
默认值: | 无 0 缓解 0 1 正常 无运行 |
---|---|
遗传: | 不 |
可动画: | 不。阅读可动画的 |
版本: | CSS3 |
JavaScript 语法: | 对象.style.animation="mymove 5s infinite"尝试一下 |
表中的数字指定完全支持该属性的第一个浏览器版本。
后跟 -webkit-、-moz- 或 -o- 的数字指定使用前缀的第一个版本。
Property | |||||
---|---|---|---|---|---|
animation | 43.0 4.0 -webkit- |
10.0 | 16.0 5.0 -moz- |
9.0 4.0 -webkit- |
30.0 15.0 -webkit- 12.0 -o- |
animation:
name duration timing-function delay iteration-count direction fill-mode play-state;
Value | Description |
---|---|
animation-name | Specifies the name of the keyframe you want to bind to the selector |
animation-duration | Specifies how many seconds or milliseconds an animation takes to complete |
animation-timing-function | Specifies the speed curve of the animation |
animation-delay | Specifies a delay before the animation will start |
animation-iteration-count | Specifies how many times an animation should be played |
animation-direction | Specifies whether or not the animation should play in reverse on alternate cycles |
animation-fill-mode | Specifies what values are applied by the animation outside the time it is executing |
animation-play-state | Specifies whether the animation is running or paused |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
CSS教程:CSS 动画
HTML DOM 参考:动画属性
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!