Skip to Content
Coming soon!
V2 (beta)API & ReferenceVanilla JS API Reference

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.0 and 1.0 is passed: Imperatively sets the scene timeline to that position and scrubs attached canvas frames.
  • If null is passed: Resumes normal scroll-driven playback.
Last updated on
Feedback