We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is it possible to redirect a visitor to another page with smoothscroll (even if this is a external one such as https://github.com) when I scroll?
I currently detect if a user is scrolling with
window.addEventListener("wheel", myFunction); function myFunction() { alert("You are scrolling"); }
Thanks in advance, Ruben
The text was updated successfully, but these errors were encountered:
Try this snippet of code:
window.addEventListener("wheel", myFunction); function myFunction() { window.location.href = "http://github.com"; }
Sorry, something went wrong.
No branches or pull requests
Is it possible to redirect a visitor to another page with smoothscroll (even if this is a external one such as https://github.com) when I scroll?
I currently detect if a user is scrolling with
Thanks in advance,
Ruben
The text was updated successfully, but these errors were encountered: