Skip to content
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

on scroll event #85

Open
Colir opened this issue Nov 14, 2018 · 1 comment
Open

on scroll event #85

Colir opened this issue Nov 14, 2018 · 1 comment

Comments

@Colir
Copy link

Colir commented Nov 14, 2018

Hi.
I would like to know if there a method to use the 'on scroll' function from scrollMonitor.
The idea is to use it for create a custom parallax effect rather than coding another scrolling event handler.
thank you, and especially thank for this lib !

@stutrek
Copy link
Owner

stutrek commented Sep 14, 2019

Check out scrollmonitor-parallax, the docs aren't great but it may do what you need.

There's no way with the library to receive a scroll event, but you can use it to add and remove scroll listeners as needed and use it to read the scroll position.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants