I have a problem all works but the animation code is executed as soon as an element is detected, all the animations are already made while they are not yet in the screen, it