Exercise 8: Solution

In notebook:
FrontEndMasters Motion Design with CSS
Created at:
2016-11-29
Updated:
2016-11-29
Tags:
css animation
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");
});