How to make an element move when appearing on screen?

My issue is: I want an element (text) to move from one position to another position when the element first appears in the scope of the screen. And when the element is not in the scope of the screen, it goes back to its original position, and so on…

Hi there, thanks for reaching out. Would you be able to share the screenrecording or screenshots that you are seeing? I’d like to understand what you experienced correctly. Thank you! Toku