@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

Peer: Vue ≥ 3.3.

Component

Props

PropTypeDefaultNotes
docMotionDocrequiredAnimation document
renderer"dom" | "canvas""dom"Paint backend
loopbooleantrueRestart at end
autoplaybooleantrueOff when progress is set
ratenumber1Playback speed
progressnumberControlled 0…1 (scroll / scrub)
onFrame(t, f) => voidPer-frame callback

Imperative handle (template ref)

play · pause · stop · toggle · seek · seekFraction · setProgress · setRate · player

Composable

Progress-driven

When progress is set, autoplay is forced off and the player scrubs to that fraction.

Examples

See examples/vue for the full advanced demo (doc switch, dual stages, transport, scrub, rate, progress mode).