Does anyone know if Velo Code (no custom code) can be used to find out exactly when a Lotti animation has finished loading or once the animation has finished playing? And How?
it’s about Wix Studio
When you visit my site I want to install a pre-loader that plays a 75 frame lottie animation and then the container in which the animation is should be slid up. But since the loading of the Lottie loads at different speeds depending on the user, I cannot work with fixed numbers (e.g. 4 seconds), otherwise it will slide up too quickly or too slowly
I already have it with if (lottieElement.rendered) then lottieElement.onViewportEnter() then lottieElement.play() then a setTimeout and in it the upslide function. But it does not work.
Maybe someone has a tip for me?
This setup solves one problem, it will always wait for the animation to start playing before kicking off the delay, which should keep it synced better. The problem is, if there’s any lag during the animation itself , it could still end up collapsing before the animation is done. Definitely test it thoroughly to make sure it holds up under different conditions.