react-double-marquee
react-double-marquee copied to clipboard
Add loop prop
I added 'onMouseEnter' to set speed to 0.03 and onMouseLeave to set speed to 0 (There was already a hover request before me). I would have loved it if we had a prop to decided how many loops would it does after on mouse leave. At the moment I'm just setting a setInterval function, which causes the end of the loop to jump.
So you'd want it to finish the loop after the mouse leaves, but then not repeat? That seems reasonable.
What about something a bit more flexible, like:
onLeave=OnLeave.FinishLoop
Yeah, that sounds great.