This commit is contained in:
Ian Gilman 2010-06-11 13:39:57 -07:00
commit 400c74246b

View File

@ -604,6 +604,19 @@ iQ.fn = iQ.prototype = {
var duration = (options.duration || 400); var duration = (options.duration || 400);
var easing = (easings[options.easing] || 'ease'); var easing = (easings[options.easing] || 'ease');
// The latest versions of Firefox do not animate from a non-explicitly set
// css properties. So for each element to be animated, go through and
// explicitly define 'em.
rupper = /([A-Z])/g;
this.each(function(){
var cStyle = window.getComputedStyle(this, null);
for(var prop in css){
prop = prop.replace( rupper, "-$1" ).toLowerCase();
iQ(this).css(prop, cStyle.getPropertyValue(prop));
}
});
this.css({ this.css({
'-moz-transition-property': 'all', // TODO: just animate the properties we're changing '-moz-transition-property': 'all', // TODO: just animate the properties we're changing
'-moz-transition-duration': (duration / 1000) + 's', '-moz-transition-duration': (duration / 1000) + 's',