Is there a callback on completion of a CSS3 animation?
Yes, there is. The callback is an event, so you must add an event listener to catch it. This is an example with jQuery: $(“#sun”).bind(‘oanimationend animationend webkitAnimationEnd’, function() { alert(“fin”) }); Or pure js: element.addEventListener(“webkitAnimationEnd”, callfunction,false); element.addEventListener(“animationend”, callfunction,false); element.addEventListener(“oanimationend”, callfunction,false); Live demo: http://jsfiddle.net/W3y7h/