To keep a Lottie animation fixed in place while the page scrolls and ensure it completes after a specific duration or scroll distance, follow these steps:
fixed
(so it stays in place).div
that will control its animation progress.relative
position for proper containment.Interactions
(lightning bolt icon) in Webflow’s sidebar.Page Scroll
animation and select "While Page is Scrolling".Start
and End
percentage based on how long the animation should run.0% to 100%
within this range to achieve smooth progress.Opacity
animation at the end of the scroll effect to gradually fade out the animation after it completes.div
to display: none
after reaching the desired point.This method keeps your Lottie animation fixed in place while scrolling and ensures it completes in a controlled timeframe without manual timing adjustments. By fine-tuning the scroll interaction percentages, you can define exactly when the animation ends.