state machine

state machine+ animation en js