In the diagram above the rope moves up and down ... and the particles of the spring vibrate horizontally. In a longitudinal wave, the vibration is parallel to the direction of energy transfer.