How to raise page scroll event
-
is there any way to raise or eventlistener when page scrolling ?
-
Searching the forums shows: https://community.onsen.io/search/scroll?in=titlesposts&sortBy=timestamp&sortDirection=desc&showAs=posts
Specifically, this post:
https://community.onsen.io/topic/582/parallax-effect/2
Gives this code:
document.querySelector('.page__content').addEventListener('scroll', function (e) { //whatever you want to do here });