Animation doesn't load properly on click

Hello Lottie community :smiley:

We used Lottie animation embedded in our login page.

Depending on the toggle button, the animation on the right side changes.
But it’s not loading the animation properly on the first transition. After you click the first time, it works fine.
Has anyone faced the same issue before?

What it looks like to me is that it’s having to load on that first click and then once’s it’s loaded it smoothly transitions properly. I would got to the file (After Effects) and see if you can simplify the layers, make sure you’re using Shape layers over Ai layers, etc.