to sway (no prep)
Verb + preposition (or no preposition)
The boat swayed with the waves.
—Were you scared on the suspension bridge? —Yes, it swayed a lot.
The swing swayed slowly in the garden.