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
Post a Comment