How to Pause a Moving Element on Hover

Hey there,
I have a question: Is there an option or setting to make an element move from the left to the right side of the page in a continuous loop? Additionally, is it possible to pause the movement by hovering over the element?
Thank you for your help!