Added visibility as a transition with same timing as opacity.