We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 321fd39 commit 6190416Copy full SHA for 6190416
ui/jquery.effects.pulsate.js
@@ -15,8 +15,8 @@
15
$.effects.effect.pulsate = function( o ) {
16
return this.queue( function( next ) {
17
var elem = $( this ),
18
- mode = $.effects.setMode( elem, o.mode || "show" ),
19
- show = mode === "show" || !elem.is( ":visible" ),
+ mode = $.effects.setMode( elem, o.mode || "effect" ),
+ show = mode === "show" || elem.is( ":hidden" ),
20
showhide = ( show || mode === "hide" ),
21
22
// showing or hiding leaves of the "last" animation
@@ -32,7 +32,8 @@ $.effects.effect.pulsate = function( o ) {
32
animateTo = 1;
33
}
34
35
- for ( i = 0; i < anims - 1; i++ ) {
+ // anims - 1 opacity "toggles"
36
+ for ( i = 1; i < anims; i++ ) {
37
elem.animate({
38
opacity: animateTo
39
}, duration, o.easing );
0 commit comments