To and fro motion of an object is also known as:
Oscillatory motion
Oscillatory motion can be termed as the repeated motion in which an object repeats the same movement over and over.So, the to and fro motion of an object is known as oscillatory motion.