Animations, session 2

The GreenSock library has another feature called timelines.
These enable us to schedule when things will happen.

Click the buttons to see examples:

In example one the timeline says it will repeat once and yoyo.
This tells it to run once forwards and once backwards.
The timeline contains three tweens.
Each one moves and rotates a box.
The tweens run one after another.

In example two the timeline again says it will repeat once and yoyo.
As before, this tells it to run once forwards and once backwards.
This timeline also contains three tweens and each one moves and rotates a box.
But now, the tweens run at the same time.