Adds state machine to animate card