@blinn-motion/react wraps the engine in a component and a hook. Pick the paint backend with one
prop; drive playback through a ref or controlled progress.
Install
The component
Props
MotionDoc
required
The animation document to play.
"dom" | "canvas"
default:"\"dom\""
Which adapter paints the resolved tree.
boolean
default:"true"
Restart when the timeline ends.
boolean
default:"true"
Start playing on mount. Forced off when
progress is set.number
default:"1"
Playback speed multiplier.
number
Controlled progress
0…1. Ideal for scroll- / gesture-linked motion.(t: number, fraction: number) => void
Per-frame callback for scrubbers and timecode readouts.
Driving playback with a ref
play · pause · stop · toggle · seek · seekFraction · setProgress · setRate · player.
Hook
Next.js
Use a client component — motion does not paint on the server:examples/next.
Examples
examples/react · dual DOM/Canvas stages.