Interactive online courses HTML Academy
2026-03-09 10:48 Diff

Another value of the animation-fill-mode property is backwards. This value defines the state of an element before the start of an animation.

If an element has an animation assigned to it with a delay and animation-fill-mode: backwards, the styles described in the first keyframe from or 0% will be applied at once, before the animation is played.

Let’s consider a specific example.