Webflow sync, pageviews & more.
NEW

How can I make a video appear after a certain scroll distance in Webflow?

TL;DR
  • Wrap the video in a div with 0% opacity initially.
  • Add a scroll trigger element above the video and use a Scroll Into View interaction to fade the video in by animating its opacity from 0% to 100% when the trigger comes into view.

To make a video appear after the user scrolls a certain distance in Webflow, you'll need to use Scroll-based Interactions (Webflow Interactions 2.0). Here's how to do it:

1. Prepare the Video Element

  • Add your video to the page using an Embed element (for custom HTML) or use the Video element if you're using a YouTube/Vimeo link.
  • Wrap the video in a Div block and give it a recognizable class name (e.g., video-wrapper).
  • Initially, hide the video by setting its opacity to 0% under the Style panel.

2. Determine the Scroll Point

  • Add a Scroll Trigger element like a Div block where you want the animation to start (e.g., halfway down the page).
  • Give it a class name (e.g., scroll-trigger) and place it above the video in the layout.
  • Set its Display to block but optionally make it a height of 1px and opacity 0% so it doesn’t affect design visibility.

3. Create the Scroll Interaction

  • Go to Interactions (the lightning bolt icon) in the right panel.
  • Click + to create a new Page Trigger or Element Trigger.
  • Choose Scroll Into View as the trigger type.
  • Select the scroll-trigger div as the trigger element.

4. Animate the Video Appearance

  • On Scroll Into View, add a new Timed Animation.
  • Choose the video-wrapper as the target.
  • Set the action to Opacity → 0% to 100% over a smooth duration like 0.5 seconds.
  • Optionally, add other effects like scale, slide up, or fade for better visual transitions.

5. Optional: Hide Video on Scroll Out

  • Use the Scroll Out of View tab in the same Interaction if you want the video to disappear again.
  • Create a reverse animation setting Opacity → 100% to 0% if desired.

Summary

Use Scroll Into View triggers in Webflow Interactions to reveal a hidden video once the user scrolls past a specific point. Wrap your video in a div, hide it initially, then fade it in when a designated scroll trigger enters the viewport.

Rate this answer

Other Webflow Questions