Creating an animation group

In this example, we will learn how to use an animation group to manage the states of the animations contained in the group.