CSS animation-fill-mode Property

The css animation-fill-mode property defines what values are applied by the animation outside the time it is executing (before and after the animation). By default, an animation does not affect property values between the time it is applied and the time it begins execution.

Syntax for animation-fill-mode property

none | forwards | backwards | both | initial | inherit