--- title: State Switch order: 2 --- State of G6 includes interaction states and bussiness states. ### Usage Animation is an important part of visualization. Users can realized complex animation by `onFrame`. The Demo below shows how to realized edge animation with interaction by states. For more information, please refer to document [Animation](/zh/docs/manual/advanced/animation-zh)。