jump an image when tapping the screen

hello, I’m French and I’m trying to create my first effect for TikTok. I have an image that automatically advances from left to right and I would like to make it appear to jump when the user taps the screen, what do I need to do this ? I saw Sin Cos, or maybe find an acceleration tool ?