The type of wave you are describing, where water particles vibrate up and down while the wave propagates towards the shore, is known as a transverse wave. In a transverse wave, the oscillations of the particles occur perpendicular to the direction of wave propagation. This is in contrast to longitudinal waves, where the particles vibrate parallel to the direction of wave propagation.