fire events on css transition and animation completion