Add

Lorem ipsum

Lorem ipsum

No-code

4 min

How to Add a Lottie Animation in Webflow

Learn how to add a Lottie animation in Webflow: upload the JSON, enable autoplay and loop, and control it with Interactions.

In this tutorial, Sandro, cofounder of Gemeos Webflow agency, shows you how to add a Lottie animation in Webflow.

OptionSourceFormat
LottieFiles (library)lottiefiles.comJSON or dotLottie
Custom After Effects animationExport via LottieFiles pluginJSON
Webflow Assets libraryDirect uploadJSON

1. Download your Lottie animation

Find an animation on LottieFiles or export your own from After Effects. Download the JSON file (or dotLottie).

2. Add the Lottie element in Webflow

In the Designer, drag the Lottie Animation element from the Add Elements panel. In Settings, click Upload JSON and upload your animation file.

3. Set up playback options

In the Lottie element Settings: Autoplay (automatic playback), Loop (loop playback), Speed (playback speed, 1 = normal). For animations triggered on scroll or click, use Webflow Interactions instead of autoplay.

4. Control it with Interactions (optional)

To trigger the animation on scroll or hover, create a Webflow Interaction. Select your Lottie element as the target and choose the Lottie Animation action: set the start and end frames based on scroll progress.

good to know

JSON Lottie animations can be heavy (some files go over 500 KB). Optimize your animations in LottieFiles Editor by removing unnecessary layers and reducing the quality of embedded assets. Aim for under 100 KB for animations used on key pages.

Conclusion

Lottie in Webflow integrates natively, no code needed. For lighter alternatives: make an element spin forever.

Published on

You might be interested in these tutorials

Similar tutorials

Let’s f*****G GO !!

Ready to launch
Your business?

Alexandre

Max

Enora

Bryan

Cannelle

Tiphaine

You'll :heart: our collaboration...