@blinn-motion/vue mounts the DOM or Canvas backend with Vue lifecycle.
Use the component for drop-in markup, or useBlinnMotion / attachBlinnMotion for full control.
Install
Component
Props
| Prop | Type | Default | Notes |
|---|---|---|---|
doc | MotionDoc | required | Animation document |
renderer | "dom" | "canvas" | "dom" | Paint backend |
loop | boolean | true | Restart at end |
autoplay | boolean | true | Off when progress is set |
rate | number | 1 | Playback speed |
progress | number | — | Controlled 0…1 (scroll / scrub) |
onFrame | (t, f) => void | — | Per-frame callback |
Imperative handle (template ref)
play · pause · stop · toggle · seek · seekFraction · setProgress · setRate · player
Composable
Progress-driven
progress is set, autoplay is forced off and the player scrubs to that fraction.
Examples
Seeexamples/vue for the full advanced demo (doc switch, dual stages, transport, scrub, rate, progress mode).