Categories
JavaScript

jsScroll – Smooth scroll for your site

Smooth vertical scroll for your site, really easy to use, fast and light. Doesn’t use any external library ๐Ÿ˜‰

Script Name: jsScroll
Version: 0.3
License: GPL v3
Screenshot:

Demo
Download

Installation:

There’s to easy ways:

1-Copy paste this in your html (footer for example):




2- or just Downlad ๐Ÿ˜‰

Usage:

Can be use where ever you want in html tags or just call it as a function on load..

The two main function are:

scrollDown(scro,delay);

First parameter “scro”: In pixels how much scroll down does from the position you currently are.
Second parameter “delay”: Delay for the move if you think is too fast, accepted values starting from 1.

scrollUp(scro,delay)

First parameter “scro”: Scroll up In pixels until the set value from the position you currently are.
Second parameter “delay”: Delay for the move if you think is too fast, accepted values starting from 1

Usage examples:
Scroll down to the document end:

Footer

Scroll down 300 pixels and delay of 10:


Scroll to the top:

Top

Scroll 120 px from the top:

scrollUp(120,1);

Support: forum.neo22s.com
Notes:
Works in FF 3.5, Chromium, Opera 10, ie6