开发者

Is it possible to have an "S-shaped" animation velocity curve in JQuery?

开发者 https://www.devze.com 2023-01-28 20:12 出处:网络
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 mea

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消