mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-10-05 01:44:18 +00:00
effects.pulsate: tweaking 'times' - if showing / hiding the animation has an extra 'half' time as opposed to removing a 'half' time
This commit is contained in:
parent
d5f6a71cfa
commit
126d46c050
4
ui/jquery.effects.pulsate.js
vendored
4
ui/jquery.effects.pulsate.js
vendored
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user