Add transitions to switch component.