When an object moves behind an occluder and re-emerges, 4-month-old infants perceive trajectory continuity only when the occluder is narrow, raising the question of whether time or distance out of sight is the important constraining variable. One hundred and forty 4-month-olds were tested in five experiments aimed to disambiguate time and distance out of sight. Manipulating the object's visible speed had no effect on infants' responses, but reducing occlusion time by increasing object speed while occluded induced perception of trajectory continuity. In contrast, slowing the ball while it was behind a narrow or intermediate screen did not modify performance. It is concluded that 4-month-olds perceive trajectory continuity when time or distance out of sight is short.