Handler function to be called on each frame of an animation.
The function receives an event object which contains information about
the frame event:
event.count: the number of times the frame event was fired.
event.time: the total amount of time passed since the first frame
event in seconds.
event.delta: the time passed in seconds since the last frame
event.
Example — Creating an animation: