You cannot directly upload Lottie JSON files into the Webflow CMS and dynamically load them into Lottie elements on CMS pages. Webflow currently does not support storing or rendering uploaded JSON files from CMS fields in this way.
.json
files for use in Lottie.To achieve dynamic Lottie animations per CMS item, use externally hosted JSON files and save their direct URLs in a Webflow CMS plain text field.
Lottie URL
).Use a custom embed on the CMS template page to dynamically render the Lottie animation. Example:
<script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script><lottie-player src="{{cms-embed 'lottie-url'}}" background="transparent" speed="1" style="width: 100%; height: 300px;" loop autoplay></lottie-player>
Make sure:
lottie-url
) is correct.You cannot upload and use Lottie JSON files directly inside the Webflow CMS, but you can host them externally and pull them into the CMS using a plain text field and a custom embed. This effectively allows each CMS item to show a unique Lottie animation dynamically.