API & Module Exports
The scrollsequence npm package distributes multiple specialized entry points for different environments and frameworks.
Subpath Exports Summary
| Subpath | Types | Target Environment | Purpose |
|---|---|---|---|
scrollsequence | ./dist/types/vanilla/index.d.ts | Browser (Vanilla / CMS) | Default export: ScrollsequenceManager engine. |
scrollsequence/react | ./dist/types/react/index.d.ts | React / Next.js / Astro | React components: <Scene>, <Layer>, <Canvas2d> (styles auto-injected). |
scrollsequence/sdk | ./dist/types/sdk/index.d.ts | Node.js / Browser | Pipeline SDK: AssetPipeline, BrowserDriver, NodeDriver. |
scrollsequence/scrollsequence.css | — | Global CSS | Compiled stylesheet for non-React projects. |
TypeScript Support
All packages are compiled with strict TypeScript typings and full IntelliSense documentation. Manifest schema types are exported from:
import type { ManifestJson, ImageSizeConfig } from 'scrollsequence/sdk';Last updated on