Configuration
Here’s the completewebreel.config.json for this example:
What It Demonstrates
Scroll Action
Thescroll action scrolls vertically by a specified number of pixels:
y: Pixels to scroll (positive = down, negative = up)selector(optional): Scroll a specific element instead of the whole page
Full-Page Scrolling
Without aselector, the scroll action affects the entire page:
Scrolling Up
Negativey values scroll back up:
Container Scrolling
Theselector field scrolls a specific element with overflow: auto or overflow: scroll:
.sidebar element independently of the main page scroll. This is useful for:
- Scrollable sidebars
- Modal dialogs with overflow content
- Embedded lists or tables
- Code blocks with horizontal scroll
Smooth Scrolling Animation
Webreel automatically animates scroll actions with smooth easing, creating a natural scrolling experience rather than instant jumps.Pacing with Delays
ThedefaultDelay of 600ms between scrolls gives viewers time to scan the content:
Running the Example
videos/page-scrolling.mp4.
Next Steps
- Drag and Drop - Learn about drag interactions
- Form Filling - Type into form fields
- Mobile Viewport - Record at mobile dimensions