Skip to content

chrisfinch/jQuery.Simple.Scroller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple Scroller

A jQuery plugin for cross browser compatible scrollbar replacement. Simple scroller makes use of Brandon Aaron's jquery.mousewheel.js plugin for providing mouse wheel support (https://github.com/brandonaaron/jquery-mousewheel).

Usage

Include jquery.simple.scroller.js, jquery.simple.scroller.css, jquery.mousewheel.js and jQuery in your html document head:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js" type="text/javascript"></script>
<script src="assets/js/jquery.mousewheel.js" type="text/javascript"></script>	
<script src="assets/js/jquery.simple.scroller.js" type="text/javascript"></script>

<link href="assets/jquery.simple.scroller.css" rel="stylesheet" type="text/css" />

Initialise the plugin on the relative element:

$(document).ready(function () {
	
	$('.content1').simpleScroller();
	 
});

Enjoy! Simple scroller will do the rest. Add your own css styling if required.

License

Copyright 2011, Christopher Finch

Licensed under the GPL Version 3 license.

Continued from my initial work at Hovr (http://www.hovr.co)

About

A really simple cross browser scrollbar replacement jQuery plugin

Resources

Stars

Watchers

Forks

Packages

No packages published