$w() has an awesome new API! With the new Lottie API , you can add a Lottie element to your site and customize it. If you don’t know what Lottie animations are, definitely check them out- they are super cool!
With the Lottie API, you can do the following:
-
Play, pause, and stop your animation.
-
Set the speed of your Lottie animation and whether it plays in a loop.
-
Get or set the source of the Lottie. It can either be a valid Lottie JSON such as animation.json , or an external Lottie animation URL, for example, ‘https://assets6.lottiefiles.com/private_files/lf30_vuxs5lpt.json’.