<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
}
.circle {
width: 100px;
height: 100px;
background: conic-gradient(
from 0deg,
red,
yellow,
green,
cyan,
blue,
magenta,
red
);
border-radius: 50%;
animation: rotateColors 5s linear infinite;
}
@keyframes rotateColors {
to {
transform: rotate(360deg);
}
}
</style>
<title>Dynamic Circle with Color Variation</title>
</head>
<body>
<div class="circle"></div>
</body>
</html>