Callback function of Animation and Transition for css3