CSS Animatable
CSS Tutorial
Definition and Usage
CompletedSome 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.
Browser Support
CompletedThe 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.
| 4.0 -webkit- | 10.0 | 16.0 5.0 -moz- |
4.0 -webkit- | 15.0 -webkit- 12.1 12.0 -o- |
Example
Animate the background-color from red to blue:
/* Code for Chrome, Safari and Opera */
@-webkit-keyframes mymove
{
from {background-color: red;}
to {background-color: blue;}
}
/* Standard syntax */
@keyframes mymove
{
from {background-color: red;}
to {background-color: blue;}
}
Try it Yourself
Animatable Properties
CompletedThese properties are animatable in CSS:
