Vanilla JS API Reference
Specification for ScrollsequenceManager and underlying runtime block instances.
ScrollsequenceManager
The singleton class coordinating all scenes on the page.
Static Methods
initialize(): typeof ScrollsequenceManager
Scans the DOM for .scrollsequence-scene and .scrollsequence-canvas2d blocks, parses data-ssq-* attributes, and binds scroll trigger observers.
preloadAll(): Promise<void>
Preloads and caches frames for all registered canvases on the page.
getBlock(element: HTMLElement): SceneBlock | Canvas2dBlock | null
Returns the runtime block controller instance associated with the specified DOM node.
destroy(): void
Tears down scroll listeners, animation frame callbacks, and releases GPU memory.
SceneBlock Methods
progress(value: number | null): void
- If a number between
0.0and1.0is passed: Imperatively sets the scene timeline to that position and scrubs attached canvas frames. - If
nullis passed: Resumes normal scroll-driven playback.
Last updated on