I am using multiscroll.js in my page. See below.
$('#myContainer').multiscroll({
sectionsColor: ['#116a9e'],
anchors: ['welcome', 'second', 'third'],
menu: '#menu',
navigation: true,
navigationTooltips: ['1', '2', '3'],
loopBottom: true,
loopTop: true
});
And I have arrow points down and I want if I reach the end of my page that arrow has to point up. But I'm not able to use below this.
document.addEventListener('scroll', onScroll);
function onScroll(){
console.log("Hello");
$('.arrow-scroll').toggleClass('scroll-down scroll-up')
}
This code never gets called. If I 'click' in place of 'scroll' everything works fine.