css - Animation fill-mode property
The animation-fill-mode CSS property defines how the styles applied by an animation affect the element before and after the animation executes.
Syntax
animation-fill-mode: none | forwards | backwards | both| none | Default. The element does not retain any animation styles before or after it runs. | 
| forwards | The element retains the styles defined in the last keyframe ( toor100%) after the animation ends. | 
| backwards | The element applies the styles from the first keyframe ( fromor0%) during the delay period, before the animation starts. | 
| both | Combines forwardsandbackwards. The element retains the first keyframe style during delay, and keeps the last keyframe style after the animation ends. | 
 
                    