SmoothScroll.js

Contains SmoothScroll

License

MIT-style license.

Summary
SmoothScroll.jsContains SmoothScroll
SmoothScrollAuto targets all the anchors in a page and display a smooth scrolling effect upon clicking them.

SmoothScroll

Auto targets all the anchors in a page and display a smooth scrolling effect upon clicking them.  Inherits methods, properties, options and events from Fx.Scroll.

Note

SmoothScroll requires an XHTML doctype.

Arguments

optionsthe Fx.Scroll options (see: Fx.Scroll) plus links, a collection of elements you want your smoothscroll on.  Defaults to document.links.

Example

new SmoothScroll();
Auto targets all the anchors in a page and display a smooth scrolling effect upon clicking them.
Scroll any element with an overflow, including the window element.

Documentation by Aaron Newton & Mootools Developers, generated by NaturalDocs and GeSHi