Webflow sync, pageviews & more.
NEW
Answers

How can I make Lottie animations play on hover and stop at the last frame in Webflow?

To make a Lottie animation play on hover and stop at the last frame in Webflow, you can follow these steps:

1. Upload your Lottie animation to your Webflow project. You can do this by going to the Assets panel and clicking on the "+" button to upload your Lottie JSON file.

2. Drag and drop an empty `Div Block` onto your Webflow canvas or select an existing element that you want to apply the animation to.

3. With the `Div Block` or the selected element still selected, go to the Interactions panel on the right-hand side of the Webflow Designer.

4. Click on the "+" button under the Trigger section to add a new trigger.

5. Choose the trigger type as `Hover` from the dropdown menu.

6. Next, click on the "+" button under the Animation section to add a new animation action.

7. From the animation action options, select `Start an animation` and choose your Lottie animation file from the dropdown menu.

8. After selecting your Lottie animation file, you can set the desired animation options such as easing, duration, and delay.

9. Now, to stop the animation at the last frame, click on the "+" button under the Animation section again to add a new animation action.

10. Select `Set 3D/2D Transform` from the action options.

11. In the Transform options, set the `RotateZ` property to the same value as the last frame of your Lottie animation. This will effectively pause the animation at its final frame.

12. You can customize further interactions by adding additional animation actions, like changing the opacity or scale when hovering over the element.

13. Preview and test your animation by going to the preview mode in the Webflow Designer or by publishing your site and testing it on your live site.

By following these steps, you'll be able to create a Lottie animation that plays on hover and stops at the last frame in Webflow. Remember to adjust the animation and interaction settings according to your specific design requirements.

Rate this answer

Other Webflow Questions