Motion
Short, decisive transitions — and an immediate stop when the user asks for less.
Motion explains where a layer came from. It never decorates, never bounces, and never delays an action. Durations are 200–480ms with a quint or cubic ease-out. Hover a row below to compare the durations, each easing curve, and the spinner.
Duration
--iv_motion-fade
0.28s --iv_motion-fly
0.34s --iv_motion-scale
0.36s --iv_motion-slide
0.38s --iv_motion-subtle
0.22s --iv_transition-base
0.32s --iv_transition-fast
0.2s --iv_transition-slow
0.48sEasing
--iv_ease-emphasized
cubic-bezier(0.2, 0, 0, 1) --iv_ease-in
cubic-bezier(0.32, 0, 0.67, 0) --iv_ease-in-out
cubic-bezier(0.65, 0, 0.35, 1) --iv_ease-out
cubic-bezier(0.16, 1, 0.3, 1) --iv_ease-snappy
cubic-bezier(0.3, 0.7, 0.7, 0.3) --iv_ease-spring
cubic-bezier(0.34, 1.56, 0.64, 1)Spinner
--iv_spin-duration
0.75s --iv_spin-easing
cubic-bezier(0.3, 0.7, 0.7, 0.3) --iv_spinner-border
2pxToken map
| Token | Value | Use |
|---|---|---|
--iv_transition-fast | 0.2s | Hover, color, border. |
--iv_transition-base | 0.32s | Focus, selection, state. |
--iv_transition-slow | 0.48s | Larger surface changes. |
--iv_motion-fade | 0.28s | Backdrops and tooltips. |
--iv_motion-scale | 0.36s | Dialogs entering. |
--iv_motion-fly | 0.34s | Sheets and popovers. |
Reduced motion
The reducedMotion store reads the OS preference and flips live. Component transitions use it; the token values also collapse to 0.01ms under prefers-reduced-motion: reduce.
Source· svelte Show Hide
<script lang="ts">
import { reducedMotion } from '@elluzion/iv-ui';
</script>
<div transition:fade={{ duration: $reducedMotion ? 0 : 200 }}>…</div>