* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2f2f2;
}
.charkhan {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
}
.charkhan::before,
.charkhan::after {
  content: "";
  position: absolute;
  border-radius: inherit;
}
.charkhan::before {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgb(236, 72, 153),
    rgb(239, 68, 68),
    rgb(234, 179, 8)
  );
  animation: charch 0.5s infinite linear;
}
.charkhan::after {
  width: 80%;
  height: 80%;
  background-color: #f2f2f2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
@keyframes charch {
  to {
    transform: rotate(360deg);
  }
}
