It has been noted by @Burimi that onepage scroll does not actually scroll the site, but instead utilizes the property translate3d
in the plugin's container.
I recommend utilizing fullPage.js which addresses this issue by including the option scrollBar:true
, as demonstrated in this example, offering a improved user experience while retaining the scroll bar.
As detailed in fullPage.js FAQs:
Parallax, along with other plugins relying on the site's scrolling, monitors the scrollTop property of JavaScript. fullPage.js does not physically scroll the site; rather it adjusts the top or translate3d properties. It will only truly scroll the site if using the fullPage.js option scrollBar:true or autoScrolling:false to ensure compatibility with the scrollTop property.
If you opt not to use the scrollBar
option, you can still utilize callbacks like afterLoad
or onLeave
as outlined in the documentation.
In addition, fullPage.js offers support for older browsers such as IE7 and Opera 12, along with providing a range of helpful options.