Contact Us | +1 888 239-0733 (Toll free US/CA) Mon-Fri: 7:30am to 4:30pm (PST)
The CSS 'animation-fill-mode' property specifies how a CSS animation should apply styles to its target before and after its execution. Essentially, it controls what happens to the animated element outside of the time the animation is running. This property can be used to maintain the style state of an element at either the start or the end of an animation or both.
See the Pen CSS 'animation-fill-mode' Property by Webzstore (@webzstore) on CodePen.
The 'animation-fill-mode
' property provides crucial control over the before-and-after states of an animated element, allowing for more seamless and integrated animations within the user interface.
![]() | ![]() | ![]() | ![]() | ![]() |
16.0 5.0 -moz- | 9.0 4.0 -webkit- | 43.0 4.0 -webkit- | 10.0 | 30.0 15.0 -webkit- 12.0 -o- |
animation-fill-mode: none|forwards|backwards|both;
This property is handy when you want an element to retain the style values from either the start or end keyframes of an animation rather than reverting to its initial styles after the animation completes. It's also handy for setting up an element's style before the start of an animation.
"*" indicates required fields