This section shows an example of a Lottie that is playing when clicked on. Clicking multiple times won't restart the animation if its already playing. However if you want the animation to restart as soon as it's clicked on set the 'forceFlag' property to true.
<script> LottieInteractivity.create({ player:'#firstLottie', mode:"cursor", actions: [ { type: "click", forceFlag: false } ] }); </script>
Comments
0 comments
Article is closed for comments.