Submit your widget

Smooth Page Scroller effect with jQuery

Created 12 years ago   Views 25620   downloads 5523    Author pagescroller
Smooth Page Scroller effect with jQuery
View DemoDownload
72
Share |

Page Scroller is a powerful JavaScript based smooth scrolling navigation system that utilizes the robust jQuery library. Created entirely with ease of use in mind, the plugin will work on any website.

Basic Usage

To enable the smooth scrolling plugin include the following files within head tag of HTML:

  • jQuery v1.3+
  • Page Scroller Plugin
  • Page Scroller CSS
    <script type="text/javascript" src="./javascripts/pagescroller.js"></script>
    

Getting Started

Instantiate the plugin on DOM load:

$(document).ready(function(){
    $('#main').pageScroller();
});

Rename Navigation Links

Custom navigation link names can be set by passing an array:

var navLabels = new Array('Home', 'Portfolio', 'Services', 'Contact');
$('#main').pageScroller({ navigation: navLabels });

The article source:http://pagescroller.com/