transitionend

For JavaScript or jQuery, how to make transitionend event not fire?

我的梦境 提交于 2019-12-24 06:35:59
问题 In the link: https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Using_CSS_transitions it is said that: Note: The transitionend event doesn't fire if the transition is aborted because the animating property's value is changed before the transition is completed. So I went ahead and tried it on http://jsfiddle.net/HA8s2/32/ and http://jsfiddle.net/HA8s2/33/ using Chrome and Firefox. example: (click on either the left or right box in jsfiddle) $(".foo").click(function(evt) { $(".foo")