Skip to content
Permalink
Browse files

effects.pulsate: tweaking 'times' - if showing / hiding the animation…

… has an extra 'half' time as opposed to removing a 'half' time
  • Loading branch information...
gnarf committed May 3, 2011
1 parent d5f6a71 commit 126d46c0509ff9b8b5f194b897201458925ace93
Showing with 2 additions and 2 deletions.
  1. +2 −2 ui/jquery.effects.pulsate.js
@@ -19,8 +19,8 @@ $.effects.effect.pulsate = function( o ) {
show = mode === "show" || elem.is( ":hidden" ),
showhide = ( show || mode === "hide" ),

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

0 comments on commit 126d46c

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