是否可以拥有“S形”的身材? JQuery 中的动画速度曲线?

发布于 2024-10-05 13:19:48 字数 292 浏览 0 评论 0原文

在 Apple iPhone 上,幻灯片动画速度遵循 S 形曲线,开始时缓慢,加速,最后减速。请参阅这篇文章以直观地了解我的意思: http://watchingapple.com/2009/11/ a-closer-look-at-iphone-transition-animations/

是否可以使用 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 with JQuery?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

記憶穿過時間隧道 2024-10-12 13:19:48

直接 jQuery 中唯一的选项是 swing (默认)和 linear,但是使用 jQuery UI,您可以使用 所有这些选项

我认为 swing 已经是 S 形了,但 jQuery UI 中肯定还有更多选择。

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.

纸伞微斜 2024-10-12 13:19:48

此处查看 easeInOutCubic 和 easeInOutQuart。

Check out easeInOutCubic and easeInOutQuart here.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文