solid-motionone icon indicating copy to clipboard operation
solid-motionone copied to clipboard

Add `useScroll` utility hook

Open jaydevelopsstuff opened this issue 1 year ago • 7 comments

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

jaydevelopsstuff avatar Aug 23 '24 05:08 jaydevelopsstuff