※Please check using Developer tools
.block {
width: 540px;
margin: 70px auto 0;
}
.img {
position: relative;
overflow: hidden;
border-radius: 50%;
transform-origin: 50.5% 49.5%;
animation: circle01 6s linear infinite;
backface-visibility: hidden;
}
.img img {
transform-origin: 50.6% 49.4%;
animation: circle02 6s linear infinite;
backface-visibility: hidden;
}
@keyframes circle01 {
100% {
transform: rotate(360deg);
}
}
@keyframes circle02 {
0% {
transform: rotate(360deg) scale(1.03);
}
100% {
transform: rotate(0deg) scale(1.03);
}
}
@media screen and (max-width:640px){
.block {
width: 100%;
}
}