Two possible motions of orange worm: rotation and translation make green wheels rotate in opposite directions.
Note: in case of three spur gears aranged in a line (orange middle gear engaging with blue and green gears), the blue and green gears rotate in the same direction.
Relative angular position between the wheels can be adjusted even during the transmission.