JSFiddle - React, Tailwind, and code Playground
CSS
div {
position: relative;
width: 200px;
height: 200px;
background: #000;
overflow: hidden;
border-radius: 50%;
animation: ROTATION 5s linear infinite;
}
div:before {
position: absolute;
display: block;
content: "";
top: 0; left: 0;
width: 50%; height: 100%;
background: url("http://otdih72.ru/uploads/events/08f3a61ad41097f8848631932339c417.jpg") no-repeat 0 0;
}
div:after {
position: absolute;
display: block;
content: "";
top: 0; right: 0;
width: 50%; height: 100%;
background: url("http://www.europaplus.ru/upload/thumb/news_308/images/news/Air_900.jpg") no-repeat 100% 0;
}
@keyframes ROTATION {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}