用于CSS转换和动画的PolyFill / Shim [英] PolyFill/Shim for CSS transitions and animations

查看:143
本文介绍了用于CSS转换和动画的PolyFill / Shim的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google对我有点失望(我认为,因为PolyFill / Shim / Spackle的术语是新的和多样的)。我试图找到一个好的JavaScript PolyFill或Shim的webkit的(现在作为RC FireFox 4的)CSS转换。

Google is failing me somewhat on this (I think because the terminology for PolyFill/Shim/Spackle is new and diverse at the moment). I'm trying to find a good JavaScript PolyFill or Shim for webkit's (and now as of the RC FireFox 4's) CSS transitions.

我发现这项工作 Weston Ruter

我也发现了 FakeSmile ,但它主要适用于SVG动画。

I also uncovered FakeSmile but it is geared mostly to SVG animation.

有人知道任何好的库来填补这个功能?最好是使用 Modernizr 的工作,并且仍在积极工作。到目前为止,最好的选择看起来像从Weston提出的开始。

Does anyone know of any good libraries to fill in this functionality? Preferably something that would work with Modernizr and is still being actively worked on. So far the best option looks like starting with what Weston came up with.

推荐答案

有一个非常好的CSS3过渡polyfill jQuery称为 jQuery.transition

There is a very good CSS3 transition polyfill for jQuery called jQuery.transition.

您可以使用通常的jQuery中的 animate()方法,如果可用,它将自动使用CSS3过渡,如果没有,它将自动回退到vanilla jQuery。

You can just use the usual animate() method in jQuery, and it will automatically use CSS3 transitions if available, and if not, it will fall back to vanilla jQuery.

这篇关于用于CSS转换和动画的PolyFill / Shim的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆