Webflow supports fixed-position elements, but you must configure the height and layout carefully to fully display them across different screen sizes. Here’s how to achieve a full-height splash image effect similar to the Stanford.edu homepage.
1. Understand Fixed Positioning in Webflow
- Fixed positioning pins an element to a location relative to the viewport, regardless of page scroll.
- If your fixed div doesn't show full height, it’s usually because height: 100% isn’t inherited correctly — the parent elements might not have height defined.
- To reliably show full-page height, set the element’s height to 100vh (100% of the viewport height), not 100%.
2. Set Full-Height Div for Splash Section
- Create a Div block and give it a class name (e.g.,
splash-section
). - In the Style panel, apply the following:
- Position: Fixed
- Top: 0, Left: 0, Right: 0
- Height: 100vh
- Z-index: Ensure it's above other content if needed.
- Add background image settings:
- Background image: Set to Cover, Center Center, No Repeat.
- Optional: Add overlay with a gradient or semi-transparent color.
- Stanford’s site uses a splash image that appears initially and then fades or scrolls into the rest of the content.
- In Webflow, you can:
- Place the splash div above the normal page content, and use scroll interactions (via Webflow’s Interactions panel) to fade it out or hide it on scroll.
- Alternatively, place the splash inside a Section at the top of the page (instead of fixed), and use min-height: 100vh. It will scroll away naturally.
4. Make It Responsive
- Ensure the min-height: 100vh or fixed height viewport adapts to all breakpoints.
- For mobile, reduce heavy images or apply a different layout if needed using Webflow’s responsive settings.
- Stanford uses a visual cue (like a small arrow) and smooth transition into content.
- You can add a scroll animation or anchor link to the next section using a button or scroll arrow with scroll to section interaction.
Summary
Webflow can fully replicate a fixed or full-height splash section like Stanford’s if you use 100vh height, fixed or relative positioning, and interactions for scroll or fade effects. Just avoid relying on height: 100% without constraining parent elements — always prefer viewport-based units for splash effects.