Exercise 8: Solution
We want for the
walk-cycle
CSS animation to finish to apply a CSS class to the element (Tuna) (#tuna.sit
).
// Attach a animationend event listener to #tuna
$("#tuna").on("animationend", function(){
$("#tuna").addClass("sit");
});