a reactive (signals based) hypermedia web framework (wip)
stormlightlabs.github.io/volt/
hypermedia
frontend
signals
1---
2version: 1.0
3updated: 2025-10-18
4---
5
6# scroll
7
8Scroll plugin for managing scroll behavior
9Supports position restoration, scroll-to, scroll spy, and smooth scrolling
10
11## scrollPlugin
12
13Scroll plugin handler.
14Manages various scroll-related behaviors.
15
16Syntax: data-volt-scroll="mode:signalPath"
17Modes:
18 - restore:signalPath - Save/restore scroll position
19 - scrollTo:signalPath - Scroll to element when signal changes
20 - spy:signalPath - Update signal when element is visible
21 - smooth:signalPath - Enable smooth scrolling behavior
22
23```typescript
24export function scrollPlugin(context: PluginContext, value: string): void
25```