Sticky header: position: sticky; top: 0 Sticky sidebar: top: <header-height + gap> (e.g. top: 72px) Sticky table header: position: sticky; top: 0; z-index: 1 on
The Scroll Patterns skill provides practical CSS and JavaScript techniques for implementing smooth scrolling, sticky elements, scroll snapping, infinite scroll, and scrollbar styling. It covers how to anchor headers, sidebars, and table headers so they remain visible while scrolling, as well as how to trigger visual effects like shadows on sticky elements. The skill also includes approaches for scroll-snap containers useful in carousels and full-page sections, plus strategies for infinite scrolling feeds with progressive loading indicators.
This skill is designed for front-end marketers and growth engineers focused on improving user engagement and conversion rates via better site navigation and content discovery. SEO specialists and PPC operators can leverage sticky headers and scroll snapping to enhance usability metrics like time on page and bounce rate. Agency strategists working on client e-commerce or content-heavy sites will find scroll patterns essential for balancing accessibility, performance, and user experience on long or dynamic pages.
Practitioners first measure header and sidebar heights to set appropriate sticky offsets, typically `top: 0` for headers and calculated pixel values for sidebars to avoid overlap. Next, they implement IntersectionObserver to detect when sticky elements enter or leave the viewport and apply UI changes like drop shadows for visual clarity. For scroll snapping, they configure containers and child elements with `scroll-snap-type` and `scroll-snap-align` to create smooth, predictable scroll stops in carousels or vertical sections. Finally, they deploy infinite scroll by observing sentinel elements near the page bottom to trigger asynchronous content fetching and loading indicators without disrupting scroll position.
How do sticky headers affect page layout? Sticky headers require accounting for their height to prevent content from shifting underneath, often by adding top padding or margin equal to the header’s height. Can scroll snapping interfere with accessibility? Yes, overly aggressive scroll snapping can impede keyboard navigation and user control, so it’s important to use `scroll-snap-type: proximity` or provide user overrides. When is infinite scroll preferable to pagination? Infinite scroll suits discovery-driven feeds where seamless browsing matters most, while pagination is better for SEO and shareable URLs in search results or catalogs.
Attach the Scroll Patterns skill to any Metaflow agent task involving front-end UI adjustments or performance optimization focused on scrolling behavior. The agent will apply tested CSS and JS patterns to enable sticky headers, smooth scrolling, or infinite feed loading as specified. Expect improved user engagement through enhanced navigation and content visibility on scroll, with fallback considerations for accessibility and motion preferences. You can then customize or combine these patterns further within your project workflows.
For broader context, see our roundup of claude skills marketing, and read Claude Code workflows for marketing agencies for related setup guidance.