That would be OSCILLATING as in swinging back and forth.
Maybe you are looking for the term "Simple Harmonic Motion"