Scroll Expand
A rounded media frame that grows to full bleed as it scrolls through the viewport.
Default
Scroll inside the frame. By default the component is its own scroller, so give its parent a fixed height. Pass useWindowScroll to follow the page scroll instead.
API Reference
ScrollExpand
Accessibility
Keyboard shortcuts and ARIA behavior.
- Give the image a meaningful alt. The title is plain text and stays in the reading order.
- With prefers-reduced-motion the frame follows the scrollbar exactly, with no smoothing.