animation-fill-mode

From Mozilla:

The animation-fill-mode CSS property specifies how a CSS animation should apply styles to its target before and after its execution.