Permalink
Browse files

Merge pull request #15 from Francisc/master

Fix for label animation loop.
  • Loading branch information...
2 parents 92cfac7 + 428287a commit 69d458c5a6694e307a2a8af0d4ff581372b7d3c9 @remybach committed Sep 29, 2012
Showing with 4 additions and 4 deletions.
  1. +3 −3 jquery.superLabels.js
  2. +1 −1 jquery.superLabels.min.js
View
@@ -177,7 +177,7 @@
_duration = defaults.fadeDuration;
}
- _label.animate(_to, _duration, defaults.easingOut);
+ _label.stop(true,false).animate(_to, _duration, defaults.easingOut);
}
};
_blur = function() {
@@ -197,7 +197,7 @@
_duration = defaults.fadeDuration;
}
- _label.animate(_to, _duration, defaults.easingOut);
+ _label.stop(true,false).animate(_to, _duration, defaults.easingOut);
} else {
// If there is a value, and the label is visible, fire our _keyup function so as to hide it. (this semi-fixes the autofill bug)
_keyup.apply(this);
@@ -220,7 +220,7 @@
_o = defaults.opacity;
}
- _label.animate({ opacity:_o }, defaults.fadeDuration, defaults.easingOut);
+ _label.stop(true,false).animate({ opacity:_o }, defaults.fadeDuration, defaults.easingOut);
};
/*===== Utility Functions =====*/

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 69d458c

Please sign in to comment.