mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
+ A work-around for supporting transitions to and from 'auto' values of left, top, width, height, etc.
+ For more details see: https://bugzilla.mozilla.org/show_bug.cgi?id=571344
This commit is contained in:
parent
daa499f843
commit
7c01f5d8b2
@ -612,6 +612,19 @@ iQ.fn = iQ.prototype = {
|
||||
var duration = (options.duration || 400);
|
||||
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({
|
||||
'-moz-transition-property': 'all', // TODO: just animate the properties we're changing
|
||||
'-moz-transition-duration': (duration / 1000) + 's',
|
||||
|
Loading…
Reference in New Issue
Block a user