var obj = document.getElementById("ID");
obj.addEventListener("webkitAnimationEnd", EndFunc());
obj.addEventListener("animationend", EndFunc());
function EndFunc() {
console.log('ok');
}
el.addEventListener('animationstart', function(e) {
alert('Animation ' + e.animationName + ' has started');
});
el.addEventListener('animationend', function(e) {
alert('Animation ' + e.animationName + ' has ended');
});