Duration

Estimate movement time from travel distance and element size.

Curve
Linear

The graph remains visible with reduced motion. Playback starts only when requested.

Recommended duration

Element size

Design heuristic: 140 + 9 × √distance, size-adjusted and clamped to 100–800 ms. It is not a platform standard. The shared Bézier curve drives playback.

What it measures

Duration returns a millisecond recommendation for one movement. Distance is entered in CSS pixels, and the size choice adjusts the result. Playback uses the chosen shared curve, so the comparison changes time without changing the curve itself.

How it is computed

The local design heuristic is 140 + 9 × √distance milliseconds. Small and large elements multiply it by 0.88 and 1.15 respectively. The result is rounded to five milliseconds and clamped to 100–800 milliseconds. This is a design aid, not an official formula or accessibility guarantee. The CSS Transitions specification defines duration as the time to complete a transition.

When to use it

Use this when a single default duration makes a short movement sluggish or a long movement sudden. Try the value in the real interface, where context, distance, visual weight and user preference can change what works.

Ease compares timing curves. Spring models physical settling. Stagger gives each list item a start time.