问题描述
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.
我发现,
我也发现了,但它主要适用于SVG动画。
I also uncovered FakeSmile but it is geared mostly to SVG animation.
有人知道任何好的库来填补这个功能?最好是使用的工作,并且仍在积极工作。到目前为止,最好的选择看起来像从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称为。
There is a very good CSS3 transition polyfill for jQuery called jQuery.transition.
您可以使用通常的jQuery中的方法,如果可用,它将自动使用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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!