How to smooth the scroll of a page?

Asked

Viewed 17,504 times

15

  • I recently used in a project a plugin called jScrollbar. Very simple that customizes the scrollbar and can also make it smoother.

  • 1
  • 1

    Hello, @Alexandre. I looked at your questions, and apparently all editions are correct. Anyway, if something was actually edited improperly, you have the option to revert, in the "edit" link. If you wish, join http://meta.pt.stackoverflow.com to discuss the matter. Anyway, visit Meta to get an overview of the site and contribute your opinion.

1 answer

15


This page you mentioned uses a jQuery plugin called Nicescroll.

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

#1 - load jQuery library

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

#2 - load Nicescroll library

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

#3 - activate the plugin on the page

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

Example

Other plugins:

  • 1

    Thanks @Sergio again helping me! D

Browser other questions tagged

You are not signed in. Login or sign up in order to post.