Streaming live at 10am (PST)

A lot of small issues with the Lottie integration

we love the Lottie integration at the office.
But after using it for a couple of weeks we experience a lot of small bugs with the integration.

Here are two examples:

1. Play animation on hover
The buttons on the page has the same hover interaction, just different orientation for the animation exported from After Effects.

One animation plays when page loads for some reason, and glitches when animation loops.

2. Play Lottie animation when scroll into view
Interactions triggers Lottie playback when scrolled into view, and reverses when it scrolls out of view.

It glitches when it loops. When we preview the animation in settings it loops fine with no glitch.

We have also experienced that animations freezes for couple of milliseconds after a couple of loop cycles, then plays again.

Link to live example:

Share link:

I was able to solve these issues. Here’s what I did:

Solution bug 1: The animation had a sub class attached to it. Once removed it didn’t play on page load.

Solution bug 2: A Lottie animations often has empty frames at the end. It didn’t show up in the preview, but instead of using default playback when it scrolled into view I created a separat interaction with timed actions, and made sure that last action didn’t play the empty frame. See screens.




This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.