-
Notifications
You must be signed in to change notification settings - Fork 26
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
multiple scrolls? #42
Labels
Comments
With plain javascript you have to create multiple Optiscoll instances yourself, as providing multiple elements is not supported. var elements = document.querySelectorAll("#scroll1, #scroll2");
elements.forEach((el) => new Optiscroll(el)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Alberto,
How would I initiate multiple scrolls in a page in plain javascript?
Say I have the main element and then some other smaller elements I want optiscroll to work with.
EDIT:
this does not seem to be working:
var element = document.querySelectorAll("#scroll1, #scroll2");
Thanks!
The text was updated successfully, but these errors were encountered: