solid-motionone
solid-motionone copied to clipboard
Add `useScroll` utility hook
This PR just adds useScroll as a utility function to get reactive updates from motionone's scroll listener. I tested it in browser and reactivity is working.
I haven't really contributed to or created any TS/Solid libraries before so I am sure there are some things that might need changing. It would be great if someone more experienced could do a proper review to make sure the code is idiomatic and functional.
Relevant issue: #8