javascript - stop() before a highlight is causing the color to not reset -
i have following:
$('#list_item_title', this).stop().effect('highlight', {color: '#8dd2f7'}, 700);
this occurs when user tries submit 0 input.length. if user presses enter several times, highlights stack why added stop. problem animation stops , input color variation of highlight color , not neutral white background.
any ideas?
stop()
accepts parameters.
.stop( [clearqueue,] [jumptoend] )
you should invoke in way:
$('#list_item_title', this).stop(false, true).effect('highlight', {color: '#8dd2f7'}, 700);
by doing so, color changed directly #8dd2f7
when stop animation.
Comments
Post a Comment