css image rotation animation code example Example: set rotation of img in css transform: rotate(180deg);