react-motion-loop
react-motion-loop copied to clipboard
Changing data onRest
Hi,
I'm having trouble clearly seeing how to insert logic at the end of a loop. For instance, changing the copy of a rotating header.
The loop breaks when I add an onRest prop, which you warn against in the README. How else does one accomplish this then? Or is that functionality not intended in this package?
Any help would be much appreciated. And apologies in advance if its right under my nose.
Nah, not really, it is a simple library that uses onRest by itself. If you want to do something with onRest, do use ReactMotion directly instead.
Look at the source code, copy it and update logic to what you want.