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

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

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -