-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support something else than React? #2
Comments
Hi @ergo that sounds like a good idea. If we do so in a way that we can reuse it easily, we can just make react-scroll-shadow to depend on that other lib. We should probably came up first with an api for that library, maybe something like: import ScrollShadow from 'scroll-shadow'
const shadows = new ScrollShadow(document.body, {/*options*/})
shadows.listen();
shadows.remove(); Thoughts? |
Yeah, sounds good, I was thinking about wrapping this into web component. |
Hi, is there a chance that common functionality can be split out so this module could use used with other frameworks too?
The text was updated successfully, but these errors were encountered: