Marquee widget - Stop text scrolling on hover


I am trying to create a marquee widget, which will have text with hyperlinks scrolling horizontally from one end to the other and it would be on loop. I have been able to achieve this feature, but I would also like to implement a feature where the scrolling would stop when the mouse is hovered over the scrollable area (So that the user can read the text and click the hyperlink). I am unsure of how to implement it. I tried setting the position of the text to some fixed coordinates when the mouse hovers over the area, but nothing happens and the text continues to scroll. I would be thankful for any suggestions!


You should be able to set a condition where the message moves only when the mouse cursor is not over it: