Sync native animation with javascript animation

Hello guys! I have two animations on my preload page: a native animation from the webflow and another using a javascript. I would like to know if there is any custom code (or some other form) where I can start my javascript animation only when my native animation is finished.

(I tried to add a delay to my javascript animation to try to synchronize with the end of my webflow animation, but I believe this is not a good practice as the loading time of a page changes slightly when the site is accessed on devices many different)

I already thank anyone who can help me. :slight_smile:

Hey @Patrick_Rodrigues

A link to your published webflow.io page would help.