What is the direction of oscillations of the particles in a medium through which a (i) transverse, (ii) longitudinal wave is propagating

In transverse waves, particles of the medium oscillate in a direction perpendicular to the direction of propagation of waves. In longitudinal waves particles of the medium oscillates in the direction of propagation of waves.