Is it possible to have an "S-shaped" animation velocity curve in JQuery?
On the Apple iPhone, the slide animation velocities follow an S-shaped curve where it starts off slow, accelerates and then slows down at the end. See this article to see a visualization of what I mean: http://watchingapple.com/2009/11/a-closer-look-at-iphone-transition-animations/
Is it possible to do this w开发者_开发问答ith JQuery?
The only options in straight jQuery are swing
(the default) and linear
, but with jQuery UI you have all of these options.
I think swing
is S-shaped already, but there are definitely more options in jQuery UI.
Check out easeInOutCubic and easeInOutQuart here.
精彩评论