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