Added pause/resume method

Added the possibility to pause and resume infinitus with callbacks. This can come in handy if you want to build something like a pause infinite scrolling button.

Let me know if there are some things I need to fix before you can merge, I'll update the PR so everybody can enjoy this small update! :)