Waves in spring
When the left end of the spring vibrates, the vibration is transmitted to the other end.
A spring can vibrate horizontally or vertically.
Fixed-end reflection
When a wave reflects off a fixed-end, the phase of the wave is reversed.
Free-end reflection
On the other hand, when a wave is reflected at the free-end, the phase of the wave remains the same.