Class: SmoothScroll

Auto targets all the anchors in a page and display a smooth scrolling effect upon clicking them.

Note:

Extends:

Fx.Scroll

Синтаксис:

var mySmoothScroll = new SmoothScroll([options[, win]]);

Аргументы:

  1. options - (object, optional) In addition to all the options, SmoothScroll has links option incase you had a predefined links collection.
  2. win - (object, optional) The context of the SmoothScroll.

Options:

  • links - (mixed) A collection of Elements or a string of Elements that the SmoothScroll can use.

Возвращает:

  • (object) A new SmoothScroll instance.

Примеры:

var mySmoothScroll = new SmoothScroll({
    links: '.smoothAnchors',
    wheelStops: false

});

Смотрите также:


Эта документация распостраняется на правах Attribution-NonCommercial-ShareAlike 3.0 License.
Оригинал документации на английском.
© Linux.ria.ua, 2008-2024