How to hide standard scrollbars?
<body style="overflow: hidden">
How to hide standard scrollbars?
<body style="overflow: hidden">
How fancyScroll works?
<link rel="stylesheet" type="text/css" href="css/fancyscroll.css" />
<script type="text/javascript" src="js/fancyscroll.js"></script>
<script type="text/javascript">
window.onload = function(){
var fs=new fancyScroll({easingFunc: 'easeInOutCubic',easingTime:1200});
//add onclick listeners to menu items
fs.addScroll('menu_link1','section1');
fs.addScroll('menu_link2','section2');
fs.addScroll('menu_link3','section3');
};
</script>
scroll() method is used to scroll page to the beginning of section by its ID. This function can be used in any link with href set to “javascript: fs.scroll(section_id)”. addScroll() can be used to register “onclick” handler for any DOM element on page so that when it’s clicked, page will be scrolled to the required section.
This author provides limited support for this item through this item's comments.
View the item support policy
We'd like to ask you a few questions to help improve CodeCanyon.