This illusion is called The Windmills of your Mind. You see the windmill going in one direction, then the addition of color, irregular shapes, or different patterns make it go another way -or two directions at once!
The creators, Michael Pickard and Gurpreet Singh, say:
How is it possible to see simultaneous forward and backwards rotation in the windmill when it is turning at constant speed and direction? Key factors in this illusion include: symmetry in the windmill design; the amount of rotation per frame; persistence of vision; and the propensity in vision to group together things that are in close proximity. The schematics provided show how differences in pitch together with the careful positioning of the windmill arms determines how visual groupings can be formed one way or the other and it is these that determine the direction of motion seen.