Usage
dotLottie-Player
Add the element dotlottie-player
and set the src
property to a URL pointing to a .lottie or .json file.
You may set and load animations programmatically as well.
Usage example for loading .json animation objects
Usage with Lottie-Interactivity
Easily add interactions to your .lottie animations with our open-source library lottie-interactivity.
You may be already familiar with this library if you’ve previously added interactions to your animations! Getting interactions up and running with .lottie looks very similiar:
HTML:
Javascript:
Last updated