I put a transition on an object using Javascript:
$(this).css('transition', 'all 1000ms');
And I listen to the transition end event:
$(this).on('webkitTransitionEnd', function() { alert('Transition did finish.'); });
The event is triggered and everything works as expected. However, when the element starts with left:100px
and you try to animate it to left:100px
the event is never triggered, which causes a problem. How would I fix this? I can't really check the value against the new values because
$(this).css('transform', 'scale(0.1)'); //only when object is being displayed will return matrix value
scale(0.5) does not equal matrix(0.5, 0, 0, 0.5, 0, 0 )