swing

(verb) sway

move back and forth (generic term)