Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aeither/5513d84d118dd3d47ff7b568721c3ccd to your computer and use it in GitHub Desktop.
Save aeither/5513d84d118dd3d47ff7b568721c3ccd to your computer and use it in GitHub Desktop.
COLOR RING
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
<div class="cerchio-esterno">
<span class="luce-colore"></span>
<span class="luce-bianca"></span>
</div>
<div class="cerchio-interno"></div>
</body>
<style>
body {
background: url("./anello.png");
background-position: center;
background-repeat: no-repeat;
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.cerchio-esterno {
position: relative;
bottom: 7px;
right: 40px;
animation: rotate 0.7s linear infinite;
}
.luce-colore {
position: absolute;
height: 240px;
width: 240px;
background: conic-gradient(#14dcff, #ffe91f, #ff0088, #14dcff);
border-radius: 50%;
filter: blur(5px);
}
.luce-bianca {
position: absolute;
height: 240px;
width: 240px;
background: white;
border-radius: 50%;
filter: blur(5px);
opacity: 0.4;
}
.cerchio-interno {
background: url("./anello.png");
background-position: -420px -350px;
position: relative;
height: 200px;
width: 200px;
border-radius: 50%;
bottom: -13px;
right: -80px;
z-index: 2;
filter: blur(5px);
}
@keyframes rotate {
0% {
filter: hue-rotate(360deg);
}
100% {
filter: hue-rotate(0deg);
}
}
</style>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment