To prevent Lottie animations from playing automatically on page load in Webflow and instead trigger them only when they scroll into view, follow these steps:
- Select the Lottie animation in the Webflow Designer.
- In the Element Settings Panel, locate the Playback option.
- Choose Scroll-Based Animation to control playback via page scroll.
- Open the Interactions Panel and create a new page trigger.
- Select "While Scrolling in View" as the trigger.
- Choose "Lottie" as the affected element.
- Set the Start and End points based on when you want the animation to play.
- Adjust the progression settings (0% to 100%) so that the animation plays only when visible.
3. Test Responsiveness
- Preview the page and scroll to ensure the Lottie animation only starts when it’s in view.
- Adjust interaction timing if needed for a smoother effect.
Summary
By changing the playback setting to "Scroll-Based" and using scroll interactions, your Lottie animation will only play when the user scrolls to it, preventing automatic playback on page load.