Interactive online courses HTML Academy
2026-03-09 12:24 Diff

The third value of the animation-fill-mode property is both.

It combines the effects of forwards and backwards. That is, before the animation starts, the element gets the state of the first keyframe. When the animation is over, the final state of the animation is preserved.

The animation-fill-mode: both action affects both repeated and alternating animation.

Let’s conduct our final experiment!