Scroll to Section
Practice scrolling to a specific section by ID.
This demo page is designed for practicing scroll navigation, sticky headers, back-to-top behavior, lazy loaded cards, infinite scroll simulations, and scroll progress indicators.
Sticky Header
Active section: Top
1. Scroll to Section
Use the sticky navigation buttons above to scroll to each section. This is useful for practicing scroll targets, section visibility, and anchor-like navigation behavior.
Scroll to Section
Practice scrolling to a specific section by ID.
Sticky Header
Practice validating sticky navigation while scrolling.
Back to Top Button
Practice scrolling down and returning to the top.
Lazy Loaded Cards
Practice content that appears after scrolling.
Infinite Scroll Simulation
Practice loading more items as the page grows.
Scroll Progress Indicator
Practice validating scroll progress changes.
2. Sticky Header
The sticky header remains visible while scrolling through the page. Automation tests can validate that it stays available after moving to lower sections.
Sticky visible
Validate the navigation is visible after scrolling down.
Active section
Validate the active section text changes after button clicks.
Easy navigation
Use the buttons to move around the demo without getting lost.
3. Back to Top Button
The floating back-to-top button appears after scrolling down. This helps test visibility conditions and scroll reset behavior.
4. Lazy Loaded Cards
These cards appear when this section becomes visible. There is also a manual button to make the behavior easier to test.
5. Infinite Scroll Simulation
This section simulates an infinite list. Use the load more button to increase the amount of visible content and validate that new items appear.
Infinite item 1
Simulated item for scroll and visibility validation.
Infinite item 2
Simulated item for scroll and visibility validation.
Infinite item 3
Simulated item for scroll and visibility validation.
Infinite item 4
Simulated item for scroll and visibility validation.
Infinite item 5
Simulated item for scroll and visibility validation.
Infinite item 6
Simulated item for scroll and visibility validation.
6. Scroll Progress Indicator
The progress bar at the top of the viewport changes as you scroll. Use this section to practice validating progress values and scroll-dependent UI changes.
Current scroll progress:
0%
Scenarios
Scroll to specific section
Validate target section is visible
Validate sticky header remains visible
Validate active section text updates
Scroll down and validate back-to-top button
Click back-to-top and validate top position
Reveal lazy loaded cards
Validate lazy loaded content appears
Load more infinite scroll items
Validate new items are appended
Validate scroll progress increases
Reset infinite scroll items