Code example for Animation

Methods: hasEnded