Lightweight, Multi-Browser, Highly Customizable Scrolling With jQuery | scrollTo

scrollTo is a cross-browser and jQuery plugin that is highly customizable for horizontal/vertical page scroll scrolling that allows smooth scrolling to a specific position of a container or the entire document.

custom scrollbar jquery, jquery custom scrollbar demo, custom scrollbar jquery for all browsers, malihu jquery custom scrollbar plugin, jquery scrollbar, jquery scrollbar plugin

How to make use of it:

1. Install the scrollTo through package deal managers.

$ npm install jquery.scrollto

# Bower
$ bower install jquery.scrollto

2. Or load the mandatory jQuery library and the jQuery scrollTo plugin from CDN.

<script src="//"></script>
<script src="//"></script>

3. The fundamental JavaScript syntax.


4. All default choices to customize the animated web page scrolling.


  // 'x', 'y', 'xy'
  axis: 'xy',

  // limits the scroll area
  limit: true,

  // If true, subtracts the margin and border of the target element.
  margin: false,

  // Can be a number or an object with left and top
  offset: false,

  // adds a % of the target dimensions
  over:  {left:0.5, top:0.5},

  // If true will scroll one axis and then the other.
  queue: false

5. Callback capabilities.


  // triggered when the animation ends
  onAfter: function(){},

  // triggered after the first axis scrolls when queueing
  onAfterFirst: function(){}


Simple Smooth X/Y Page Scroll Plugin, jQuery scrollTo Github, mcustomscrollbar scroll to bottom, custom scrollbar js

See Demo And Download

Official Website(flesler): Click Here

This superior jQuery/javascript plugin is developed by flesler. For extra Advanced Usages, please go to the official website.

Related Posts


Adding Zoom-on-Wheel and Pan-on-Drag to Inline SVG Elements

Vanilla-js module for adding zoom and panning behavior when dragging to SVG embedded elements. A lightweight Vanilla JavaScript plugin that enables zoom and pan functions on an…


Sorting HTML Table Vanilla JavaScript Library | Sortable.js

Sortable – Small JS vanilla table sorter makes any table with class = “sortable“, er, sortable. That is, the user can click the table header and change…


WYSIWYG Rich Text Editor With jQuery And FontAwesome | RichText

RichText jQuery implementation for WYSIWYG Rich Text Editor which uses Font Awesome Iconic Font for editor icons. It is licensed under AGPL-3.0. Initialize editor Simply call .richText() on your jQuery(‘textarea’) or jQuery(‘input’)…


[Autocomplete] Email Domain Suggestions Like Gmail, Outlook, or More | email-genie

Email Genie allows auto-completion in the email field by providing a list of domain suggestions (,, etc.). This package is lightweight, flexible, compatible with libraries (jQuery,…


[Generator] JavaScript Library for Creating Squircley Magic ✨ | squircley.js

squircley.js is the core magic of Squirclular ✨ from wrapped in a simple 0-dependency JavaScript library. squircley.js can generate SVG files, add square backgrounds to DOM…