Skip to content
Permalink
Browse files

fix for #4204, fadeTo shows hidden elements before animating

  • Loading branch information
brandonaaron committed Mar 18, 2009
1 parent ace1338 commit 62a251a0cf8b8652082da3d5a72b6c6e2b120914
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/fx.js
@@ -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 ) {

0 comments on commit 62a251a

Please sign in to comment.
You can’t perform that action at this time.