(final)
You can configure a final state, which when entered indicates the system has reached the end:
final: 'c'
This can be detected by:
to state to the state machine's final stateisComplete() methodcomplete handlerThis example uses a change handler to update the animation, and a complete handler to log to the console.