Closed IchUseKomplexe closed 3 weeks ago
@IchUseKomplexe I think you're using the @dotlottie/player-component
, you can try to use the @lottiefiles/dotlottie-web
instead
Here is a codesandbox example you can refer to for the usage https://codesandbox.io/p/devbox/lottiefiles-dotlottie-web-basic-example-tcy3rv
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs.
@IchUseKomplexe, I wonder if you've tried migrating to @lottiefiles/dotlottie-web. Any updates?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs.
Overview
Hey, so I've added a preloader to my shopify website and used the dotlottie animation. It's only shown once in a session and only on the main page. Via HTML I preload the .lottie file and the animation plays, after the DOM Content has completely loaded, to ensure, the timer syncs with the animation.
My html:
My javascript
preloader.js
The Problem
Sometimes the animation skips some frames and lags, especially on mobile devices. It doesn't matter if your connection is slow or fast, since the animation only loads after the page is completely loaded.
https://github.com/LottieFiles/dotlottie-web/assets/42212706/413d5b55-4829-4759-8442-dc443060b9d9
https://github.com/LottieFiles/dotlottie-web/assets/42212706/b3022544-d137-4628-ba8e-e2f531aa38f6
This is also reproduceable on desktop. Sometimes it lags, sometimes not. Hope some1 can help me.
Consuming repo
...
Labels
Type: Bug
label to this issue.