mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
fix for #4204, fadeTo shows hidden elements before animating
This commit is contained in:
parent
ace13387c8
commit
62a251a0cf
@ -95,7 +95,8 @@ jQuery.fn.extend({
|
||||
},
|
||||
|
||||
fadeTo: function(speed,to,callback){
|
||||
return this.animate({opacity: to}, speed, callback);
|
||||
return this.filter(":hidden").css('opacity', 0).show().end()
|
||||
.animate({opacity: to}, speed, callback);
|
||||
},
|
||||
|
||||
animate: function( prop, speed, easing, callback ) {
|
||||
|
Loading…
Reference in New Issue
Block a user