开发者

CSS3 easing Mobile Safari

How do I recreate the easing/friction for touch events in Mobile Safari? For example, if I have a scroller and drag the contents it will bounce back when you go past the top or past the bottom?

I tried messing wit开发者_JAVA技巧h the cubic-bezier easing function but couldn't emulate the friction in Mobile Safari on an iPhone/iPod. I want to make the HTML page as similar to an app as possible.

Thanks!


This is not possible with pure CSS3, since scroll easing incorporates momentum physics, not a pure CSS3 easing function.


You should look at my answer to the following question -

How to implement easeOutBack easing in css transform animation

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜