CSS Animations
CSS Animations is a module of CSS that lets you animate the values of CSS properties over time, using keyframes. The behavior of these keyframe animations can be controlled by specifying their timing function, duration, their number of repetitions, and other attributes.
Reference
CSS Properties
animation
animation-delay
animation-direction
animation-duration
animation-fill-mode
animation-iteration-count
animation-name
animation-play-state
animation-timing-function
CSS At-rules
Guides
- Detecting CSS animation support
-
Describes a technique for detecting if a browser supports CSS animations.
- Using CSS animations
-
Step-by-step tutorial about how to create animations using CSS. This article describes each relevant CSS property and at-rule and explains how they interact with each other.
- CSS animations tips and tricks
-
Tips and tricks to help you get the most out of CSS animations. Currently offers a technique for replaying an animation which has already run through to completion, which the API doesn't support inherently.
Specifications
Specification | Status | Comment |
---|---|---|
CSS Animations Level 1 | Working Draft | Initial definition. |
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
CSS_Animations |
43
3
|
12
12
|
16
49
5
|
10 |
30
15
12.1-15
12-15
|
9
4
|
43
2
The
animation-fill-mode property is not supported in Android browsers below 2.3. |
43
18
|
16
49
5
|
30
14
12.1-14
12-14
|
9
3.2
|
4.0
1.0
|
BCD tables only load in the browser
See also
- Related to CSS Animations, CSS Transitions can trigger animations based on user actions.
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Animations