javascript - transitionend firing +1 event with if statement -


i have if statement checks if element has style attr. if style attribute not present adds inline styling. if present removes it. use transition styling gets added.

i'd //something after transition ends via transitionend, issue facing every subsequent click element produces transitionend event.

i've made fiddle depicts behavior.

any appreciated.

unbind before set it

$('.box').unbind(transend);

this cuts down on alerts greatly

before: more , more shown

after: 3-4 shown each time


Comments

Popular posts from this blog

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Restarting Supervisor and effect on FlaskSocketIO -

javascript - Using jquery append to add option values into a select element not working -