Pay attention to @keyframes To/from study
<!DOCTYPE HTML><HTMLLang= "en"><Head> <MetaCharSet= "UTF-8"> <title>Document</title></Head><Body><style> /*Clockwise rotation*/@keyframes Spin{To {transform:Rotate (1turn); } } /*counter clockwise rotation*/@keyframes Spin-reverse{From {transform:Rotate (1turn); } } /*It's a self-defeating style.*/. Basic{Border:3px Solid Orange;Height:150px;width:150px;Border-radius:50%;margin:50px; } /*Rotates clockwise, and all the sub-elements of the element are rotated together.*/. Avatar{ /*linear: The speed is the same from beginning to end; Infinite: Infinite Carousel*/Animation:Spin 10s infinite linear; } /*Counterclockwise rotation "Rotation" , and "revolution" caused by the rotation of the offset. To form an illusion of not moving.*/. Avatar > IMG{Animation:Spin-reverse 10s Infinite linear; }</style><Divclass= "Basic Avatar"> <imgsrc= "Github.png"alt=""></Div></Body></HTML>
CSS3 Animation realization of circular path translation animation