Play animation on hold

Haleeza
Haleeza
  • Updated

With the 'cursor' mode and 'hold' type the animation will play when the cursor is placed over the animation, and in reverse if the cursor leaves the animation.

 

<script>
LottieInteractivity.create({
    player:'#thirteenthLottie',
    mode:"cursor",
    actions: [
        {
            type: "hold"
        }
    ]
});
</script>
    



Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Article is closed for comments.