Lottie Animation is not playing when using View Pager component

Hello,
I’ve used the View Pager component in my app and there is one web viewer in each tab. I’ve also used Lottie animation in it. I’ve programmed it as when the webpage will get loaded, the lottie animation will no more be visible and the web viewer will be visible. But, the problem I’m facing is that the lottie animation is displayed, but the animation doesn’t play/start. It remains stagnant at one frame. Can anyone please help me?

Blocks:
blocks

AIA file:
LottieTestApp.aia (4.2 KB)

APK file:
LottieTestApp.apk (5.3 MB)

1 Like

Try this and see if it works for you

LottieTestApp_1.aia (4.9 KB)

LottieTestApp.apk (5.5 MB)

This works great but the animation comes every time a user changes the tab. I just wanted it to play once till the time webpage gets loaded and then not.

However, as you used the clock component, the animations were playing and the main problem got solved. So, I just rearranged the blocks and enabled looping for both the lotties and got my purpose resolved.
Thank you so much @dora_paz

Changed blocks:

AIA file: LottieTestApp_1.aia (4.5 KB)
APK file: LottieTestApp_1.apk (5.5 MB)

1 Like

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