This is called the direction of wave propagation. S waves are slower than P waves and they can only travel through solid rock. S waves move the particles it pushes through up and down or side to side (perpendicular to the motion of the S waves energy).
How does the S waves move?
It pushes and pulls the rock it moves through just like sound waves push and pull the air. The second type of body wave is the S wave or secondary wave, which is the second wave you feel in an earthquake. An S wave is slower than a P wave and can only move through solid rock, not through any liquid medium.