layoutcontroller
z-stickySticky
Sticks an element to the viewport edge on scroll, with start/end boundaries, show-on-up reveal, overflow handling, and native-sticky fallback.
Notes
- Uses native
position: stickywhen possible (top position, noshow-on-up, no animation, default end, and no overflow-clipping ancestor); otherwise it fixes the element and inserts a placeholder. - When the element is taller than the viewport, scrolling accumulates overflow so both ends stay reachable.
- A sticky element only sticks within its parent's box; the default
endboundary is the parent's inner bottom edge.