To create a two-level scrolling system in Webflow—where users scroll through full-page sections, and then scroll within those sections independently—you can use a combination of overflow control and fixed or sticky positioning.
1. Structure Your Sections
- Create a top-level wrapper div that will contain all your full-page sections (e.g.,
Section Wrapper
). - Inside this wrapper, create individual full-height sections (e.g.,
100vh
). - Each section can contain content that's vertically scrollable.
2. Enable Inner Scroll for Content
- For each section, add a child div (e.g.,
Section Content
) that holds the actual inner content. - Set this div’s height to 100% of the section (
100%
or 100vh
depending on structure). - Set
overflow: auto
on the Section Content
div to allow scrolling inside it. - Optionally use
padding
or margin
to create internal spacing.
- To keep scrolling within content from affecting the main page scroll, ensure only one area is scrollable at a time:
- Set the outer
Section Wrapper
div to overflow: hidden
to prevent unintended page scroll. - Only the
Section Content
should scroll when the user interacts inside a section.
4. Manage Section Transitions (Optional)
- For more control over section navigation (scroll-jumping between sections), consider one of:
- FullPage.js integration (for advanced scroll hijacking).
- Anchor links + smooth scrolling using Webflow’s built-in linking to element IDs.
- Custom interaction triggers: detect mouse wheel or keypresses to switch sections manually (requires custom code).
5. Make It Mobile-Friendly
- Test thoroughly on mobile and tablet sizes.
- Inner scroll areas can be harder to use on mobile devices due to touch events, so ensure the scrollable areas are clearly indicated and sized properly.
Summary
To create a two-level scroll in Webflow, use overflow: auto
on inner content containers inside fixed-size sections, and prevent scroll bleed with proper overflow: hidden
on parent wrappers. This allows users to scroll within sections without affecting the overall section navigation.