You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
With plain javascript you have to create multiple Optiscoll instances yourself, as providing multiple elements is not supported.
Something like this should do the trick:
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: