@blinn-motion/dom builds nested DOM layers and plays a MotionDoc using @blinn-motion/core’s render
math. It’s the fidelity reference: transforms, gradients, SVG vector paths with
arrowheads, clip-path polygons & stars, masks, and procedural shaders.
Install
Create a player
create(container, doc, opts) returns a DomPlayer. It mounts a sized stage inside your
container and starts the shared clock.
Options
Restart from the beginning when the timeline ends.
Begin playing as soon as the player mounts.
Playback speed multiplier —
0.5 is half speed, 2 is double.Called every frame with the current time (seconds) and progress (
0..1). Use it to drive a
scrubber or a timecode readout.