@blinn-motion/lit registers a custom element that plays a MotionDoc through DOM or Canvas. Use it from Lit, vanilla HTML, Astro islands, or any framework that can host web components.

Install

Peer: Lit ≥ 3.

Register + play

Set sideEffects: true is already declared on the package so bundlers keep registration. Prefer an explicit defineBlinnMotionElement() in your entry so tree-shaking never drops the element definition.

Properties

Methods

Same as other adapters: play, pause, stop, toggle, seek, seekFraction, setProgress, setRate.

Events

Pure mount

Examples