When the outer edge of a part of the circle is trailing and the inner edge is ahead, the circle appears to move outwards; reverse this and it appears to move inwards. The parts where the circle appears to be moving up/down/left/right have one side set to the 'outwards' motion, the opposite side set to the 'inwards' motion, and the other sides in sync.
The human visual cortex has so, so many edge cases like this. It's wonderful!