When an light travels in free space, it has a velocity of propagation equal to the speed of light.
However, then the light enters a medium with a refractive index of n, the velocity of propagation changes to
$\ v_p = c / n $
Is this change in velocity instant? Or is there a gradual deceleration over distance, such as a ball rolling into a sand box (and acceleration when it exits the medium)?