Code example for Animation

Methods: hasEnded, reset