ScrollMagic
ScrollMagic copied to clipboard
How to throttle scrollmagic?
Hi, I have a question how can I throttle or debounce scroll magic?
The event trigger many times.
You can set refreshInterval
on the controller:
http://scrollmagic.io/docs/ScrollMagic.Controller.html#constructor
Hi @oherst - how would this work? Would I do var controller = new ScrollMagic.Controller({refreshInterval: 200});
on the controller to add a 200ms throttle? I'm relatively new to JS and scroll magic.
Finally! This is the only link to 'refreshInterval' docs I've found that works! Docs seem a bit messed up? Searching for 'refreshInterval' returns nothing. Googling 'scrollmagic refreshInterval' brings up a link, but then 'refreshInterval' is nowhere on the page