react-double-marquee icon indicating copy to clipboard operation
react-double-marquee copied to clipboard

Add loop prop

Open niz11 opened this issue 4 years ago • 2 comments

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.

niz11 avatar Jul 13 '20 16:07 niz11

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

cdtinney avatar Sep 26 '20 02:09 cdtinney

Yeah, that sounds great.

niz11 avatar Sep 30 '20 15:09 niz11