Dynamic transitions and hysteresis