A State Machine is like a traffic controller for your animations: it decides what happens next based on user input or conditions. Let’s build one together, step by step, using a button hover + click as our running example.
https://lottie.host/embed/75b15a99-b46b-4434-9faa-e0c862f09263/7TKhIJ9daB.lottie?stateMachineId=StateMachine1
You can remix the file for this example here:
Before we even touch State Machines, we need an animation to work with.

In our example, Idle covers frames 0-90, Hover covers 90-179, and Click covers 180-299.

👉 At this point, you should have a button with labeled segments that look like mini “clips” of behavior.
For more information on Animations and Segments: Animations and Segments
