Home > three-story-controls > ScrollAction
ScrollActions provide a way to add custom callback hooks for specific parts of the scroll area
Signature:
export interface ScrollAction
Property | Type | Description |
---|---|---|
callback | (progress: number) => void | Callback with 0-1 progress when element is between start and end conditions. |
end | string | When to end the action, in %, px or vh. |
start | string | When to start the action, in %, px or vh. |