Auto targets all the anchors in a page and display a smooth scrolling effect upon clicking them.
Note:
- Fx.SmoothScroll requires the page to be in Standards Mode.
Extends:
Syntax:
var mySmoothScroll = new Fx.SmoothScroll([options[, win]]);
Arguments:
- options - (object, optional) In addition to all the Fx.Scroll options, Fx.SmoothScroll has links option incase you had a predefined links collection.
- win - (object, optional) The context of the Fx.SmoothScroll.
Options:
- links - (mixed) A collection of Elements or a string
of Elements that the Fx.SmoothScroll can use.
Returns:
- (object) A new Fx.SmoothScroll instance.
Examples:
var mySmoothScroll = new Fx.SmoothScroll({
links: '.smoothAnchors',
wheelStops: false
});