The Pythagorean theorem applies in both space and time. The SQUARES of the wave amplitudes are animated. Look at a single trace and follow it across the screen. Notice the various wavelengths. Notice how they form patterns. Pay attention to the details.
What makes the squares move back and forth on the waves?