Adding state class for transitions.