Some CSS properties are animatable, meaning that they can be used in animations and transitions.
Animatable properties can change gradually from one value to another, like size, numbers, percentage and color.
The numbers in the table specifies the first browser version that fully support CSS animations.
Numbers followed by -webkit-, -moz-, or -o- specify the first version that worked with a prefix.
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- |
Animate the background-color from red to blue:
@keyframes mymove {
from {background-color: red;}
to {background-color: blue;}
}
Try it Yourself »
These properties are animatable in CSS:
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!