I'm trying to run Stellar.js on 'main' element instead of 'window', but the position of my background image not updated when I scroll the page. The 'main' element doesn't have scrollbars, so naturally $elem.scrollTop() returns nothing but zero and the scroll position is always the same.
I'm trying to run Stellar.js on 'main' element instead of 'window', but the position of my background image not updated when I scroll the page. The 'main' element doesn't have scrollbars, so naturally $elem.scrollTop() returns nothing but zero and the scroll position is always the same.