jquery - 强制 jquery 使用 css3 来实现其效果

标签 jquery css

是否可以强制 jquery 使用 CSS3 过渡来实现淡入淡出效果?

这是一个仅限移动设备的网站,因此我希望尽可能地发挥其性能。

最佳答案

第一Google resultjQuery animate enhanced plugin .

Extend $.animate() to detect CSS transitions for Webkit, Mozilla and Opera and convert animations automatically. Compatible with IE6+

Properties supported: (more to come)

  • left/right : using translate(x, y) or translate3d(x, y, z)
  • top/bottom : using translate(x, y) or translate3d(x, y, z)
  • opacity
  • width
  • height

根据this page ,您应该将插件的 useTranslate3d 选项设置为 true,以便在 iDevice 上实现更流畅(硬件加速)的动画。

关于jquery - 强制 jquery 使用 css3 来实现其效果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9487604/

相关文章:

javascript - 从 AJAX 或 JQuery 运行 Python 脚本

javascript - 移动设备的屏幕宽度(android和ipod)

html - 显示用于网页导航的平铺 Sprite 图像

jquery - 带过渡的范围 slider 图像交换

Jquery Colorbox 滚动整个窗口,而不仅仅是 colorbox 内的内容

css - spring boot + thymeleaf 3+bootStrap,配置bootstrap返回404错误

css - 以CSS菱形居中文本

jquery - 在网站中查看消息到移动浏览器

javascript - 带有事件的输入框字段出现奇怪的问题

javascript发送变量但插入数组php无法正常工作