How to leave the Scroll of a smooth page?

15

How do I make the scroll bar on a page smooth? And if you can, how to customize it.

Example: link

    
asked by anonymous 03.05.2014 / 02:09

2 answers

15

This page you mentioned uses a jQuery plugin called NiceScroll .

It's very easy to implement, you just need to put this code inside your <head> tag.

# 1 - load the jQuery library

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>

# 2 - load the NiceScroll library

<script src="http://areaaperta.com/nicescroll/js/jquery.nicescroll.min.js"></script>

#3-activatethepluginonthepage

$(document).ready(function(){$("html").niceScroll();
});

Example

Other plugins:

03.05.2014 / 20:31
3

I recently used a plugin called jScrollbar in a project. It's very simple to customize the scroll bar and can also make it even smoother.

    
03.05.2014 / 03:43