Motion Graphics
import { DrawPath, FlowLine, Orbit, OrbitRing, Odometer, Waveform, StatusMark } from "pleate/effects/motion-graphics";Data flow
FlowLine between services, with an Odometer on the live figure. Pause stops both.
Bookings per hour
1,284Drawn route
DrawPath strokes the route when it scrolls into view.
Orbit
Two rings turning in opposite directions; hover to stop them.
Odometer
Each digit rolls to its new value, formatted with Intl.
Trip total
€1,840Waveform and status
A recording level and a status mark that draws itself.
Props
- DrawPath
Strokes one or more paths on view.
d, viewBox, duration, delay, stagger, strokeWidth, once, label- FlowLine
A pulse travelling along a path over a hairline track.
d, viewBox, duration, length, reverse, paused, label- Orbit / OrbitRing
Items placed evenly on rings that stay upright while turning.
size, center, pauseOnHover / radius, duration, reverse, track- Odometer
Rolling digits; the ones column stays put as the number grows.
value, format (Intl), locale, duration- Waveform
Idle speech-like animation, or real levels from 0 to 1.
active, levels, bars, height, label- StatusMark
Spinner while pending, then a drawn mark.
"pending" | "success" | "warning" | "error", size, label
Accessibility
- Drawings are decorative unless you pass label, then they are named images.
- Odometer animates an aria-hidden copy and exposes the plain value to screen readers.
- StatusMark is a status region: the change is announced ("Done", "Failed"…).
- Reduced motion: paths appear drawn, pulses and orbits stop, digits jump to the value.