Skip to content

Commit 126d46c

Browse files
committed
effects.pulsate: tweaking 'times' - if showing / hiding the animation has an extra 'half' time as opposed to removing a 'half' time
1 parent d5f6a71 commit 126d46c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/jquery.effects.pulsate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ $.effects.effect.pulsate = function( o ) {
1919
show = mode === "show" || elem.is( ":hidden" ),
2020
showhide = ( show || mode === "hide" ),
2121

22-
// showing or hiding leaves of the "last" animation
23-
anims = ( ( o.times || 5 ) * 2 ) - ( showhide ? 1 : 0 ),
22+
// showing or hiding adds an extra "half" animation
23+
anims = ( ( o.times || 5 ) * 2 ) + ( showhide ? 1 : 0 ),
2424
duration = o.duration / anims,
2525
animateTo = 0,
2626
queue = elem.queue(),

0 commit comments

Comments
 (0)