in the Editor create onViewportEnter event from properties panel on this element and add your code below that line so when this element enters the viewport it runs the animation.
You can check this page
in the Editor create onViewportEnter event from properties panel on this element and add your code below that line so when this element enters the viewport it runs the animation.
You can check this page