I have a transition set:
element.one("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd", function(){
scrollActive = false;
}).css({
'-webkit-transform': '' + prop + '(' + value + 'px)',
'-ms-transform': '' + prop + '(' + value + 'px)',
'transform': '' + prop + '(' + value + 'px)'
});
and in CSS:
.element {
transition: transform ease-in-out 0.3s;
}
If I don't have transition set in CSS, the transitionend event will never fire.
Is there a way to check if element has transition set?
window.getComputedStyle(element);