Motion
Use motion to explain state changes, keep it interruptible, and preserve the same meaning when reduced motion is active.
tsx
<Motion preset="slideUp">
<YourContent />
</Motion>Motion values are library choices. They do not reproduce private native spring parameters.
Platform note. Browser animation cannot match native system transitions across Apple releases and input devices. Motion values in this package are authored library tokens.
What the guidance says
- Motion should communicate status, feedback, spatial continuity, or the result of an action.
- Direct manipulation needs immediate visual response.
- Avoid automatic, repetitive, flashing, or large peripheral motion that can distract or cause discomfort.
- Preserve meaning when motion is reduced or removed.
How to apply it on the web
- Use short library transition tokens for state changes and reserve larger movement for navigation context.
- Read
prefers-reduced-motionand replace travel, zoom, and bounce with brief fades or immediate updates. - Keep animations interruptible and avoid delaying input while decorative motion finishes.
- Use library easing tokens. Do not describe them as Apple native spring constants.
What to check
- Does every animation explain a change or confirm an action?
- Can repeated input interrupt or reverse the animation cleanly?
- Does reduced motion preserve state, focus, and task completion?
- Are there any blinking, sustained oscillating, or unnecessary peripheral effects?