Why does a shadow change length?
Short answer
When the angle of incoming light changes, the shape and length of the shadow cast by an object change too.
How it works
Shadows are longer when the Sun is low and shorter when it is high. A shadow extends away from the light source.
Key point
The practical point is this: A shadow extends away from the light source.