0

实现可以在窗口周围拖动并悬停以使其他对象出现的对象的最佳 Javascript 框架是什么?

我在考虑 AngularJS,但那是最好的选择吗?jQuery 似乎不够通用。

另外,哪一个是最兼容跨浏览器的?

谢谢

编辑:jQuery UI 可能是一种选择,但似乎我想要做的将是重动画,使用硬件加速的框架比使用浏览器加速的框架更合适?

4

1 回答 1

1

You're only going to get native acceleration using HTML5 in combination with CSS3. To that end, there are means of implementing something similar to dragability, which, in combination with this answer, may achieve what you need via the events. JS still required, but much, much less.

The downside is that you lose browser compatibility. To remedy this, check out Modernizr. You can add in jQuery UI if a legacy browser accesses your site, but otherwise stick with HTML5. As you can guess, doing animations without Flash and with native acceleration AND browser compatibility can get hairy quickly.

于 2013-10-07T04:50:03.377 回答