[NEED ASSISTANCE] ViewportEnter / ViewportLeave

Hi,
I am trying to animate images/texts whenever it enter the viewport, but i can’t seems to get the code to work. I enter these codes into it, but not sure if i should call it in OnReady function.

Assistance is needed. Thank you

If your element #cloud1 is hidden by default then viewportEnter will not work on it as the function only works on visible elements.

Thank you! it works now!

i have 1 more question
how do i make it so that it happens every time it enters viewport ! Right now it only happen once, is there a way whereby i can make it happen every time?