Skip to content
CSS·Beginner·Conceptual·1 min read

What does animation-fill-mode: forwards do?

Short interview answer

It keeps the element in the state defined by the animation's final keyframe after the animation completes, instead of reverting to its pre-animation styles.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to CSS animations and transitions

Related questions