Duration

Compare how duration and delay affect response, rhythm, and perceived waiting.

Preview

Duration measures the elapsed time from an animation's start state to its end state.

Preview
Duration

Implement Duration: Compare how duration and delay affect response, rhythm, and perceived waiting. Use Duration 240ms, Delay 0ms, Easing snap. Trigger it once when state changes and keep it replayable. Use semantic HTML, scope CSS to .motion-demo--duration. Provide equivalent low-motion behavior for prefers-reduced-motion and .force-reduced-motion.

Learn more