In a transverse wave, the particles are displaced perpendicular to the direction the wave travels. ... In a longitudinal wave the particles are displaced parallel to the direction the wave travels. An example of longitudinal waves is compressions moving along a slinky.
Hopefully this help you! God bless