jqueryscrolltoeasing-functions

Jquery ScrollTo Easing


Can´t apply an easing method to Jquery ScrollTo:

$("#scroller").scrollTo(target,1000,{axis:'x',easing:'linear'});

This doesn´t ease anything... Im starting to use jquery now (been using prototype for long) so this is surely my mistake. Do I need an easing plugin to achieve this? What are the easing option for this plugin (if any)? The documentation is not clear about this. Thanks.


Solution

  • From jQuery:

    The only easing implementations in the jQuery library are the default, called swing, and one that progresses at a constant pace, called linear.

    So easing: 'linear' is not supposed to show anything. Try easing: 'swing'.