下面有更多 "亲自试一试" 示例。
这个animation-direction
属性定义动画是否应向前、向后或交替循环播放。
表中的数字指定完全支持该属性的第一个浏览器版本。
后跟 -webkit-、-moz- 或 -o- 的数字指定使用前缀的第一个版本。
Property | |||||
---|---|---|---|---|---|
animation-direction | 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-direction: normal|reverse|alternate|alternate-reverse|initial|inherit;
Value | Description | Demo |
---|---|---|
normal | Default value. The animation is played as normal (forwards) | Play it » |
reverse | The animation is played in reverse direction (backwards) | Play it » |
alternate | The animation is played forwards first, then backwards | Play it » |
alternate-reverse | The animation is played backwards first, then forwards | Play it » |
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 参考:动画方向属性
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!