justin-chu / react-fast-marquee

A lightweight React component that harnesses the power of CSS animations to create silky smooth marquees.
https://react-fast-marquee.com
MIT License
1.16k stars 96 forks source link

Add marquee events #29

Closed PikaDude closed 2 years ago

PikaDude commented 2 years ago

Adds two new optional props: onFinish and onCycleComplete.

onFinish: A callback for when the marquee finishes scrolling and stops. Only calls if loop is non-zero. onCycleComplete: A callback for when the marquee finishes a loop. Does not call if maximum loops are reached (use onFinish instead).

Closes #24.

justin-chu commented 2 years ago

Looks good!