Skip to content

Instantly share code, notes, and snippets.

@polinamazaeva
Created April 25, 2023 10:55
Show Gist options
  • Save polinamazaeva/e1091118fcc53e3434bd40183f9ce9a9 to your computer and use it in GitHub Desktop.
Save polinamazaeva/e1091118fcc53e3434bd40183f9ce9a9 to your computer and use it in GitHub Desktop.
dygvrod
<div class="ring">Создание
<span></span>
</div>
body
{
margin:0;
padding:0;
}
.ring
{
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
width:150px;
height:150px;
background:#33383D;
border:1px regular #3c3c3c;
border-radius:50%;
text-align:center;
line-height:150px;
font-family:Roboto;
font-size:16px;
color:#15A2AB;
letter-spacing:1px;
text-transform:capitalize;
text-shadow:0 0 10px #15A2AB;
box-shadow:0 0 20px rgba(0,0,0,.5);
}
.ring:before
{
content:'';
position:absolute;
top:-3px;
left:-3px;
width:100%;
height:100%;
border:3px solid transparent;
border-top:3px solid #15A2AB;
border-right:3px solid #15A2AB;
border-radius:50%;
animation:animateC 2s linear infinite;
}
span
{
display:block;
position:absolute;
top:calc(50% - 2px);
left:50%;
width:50%;
height:4px;
background:transparent;
transform-origin:left;
animation:animate 2s linear infinite;
}
span:before
{
content:'';
position:absolute;
width:16px;
height:16px;
border-radius:50%;
background:#15A2AB;
top:-6px;
right:-8px;
box-shadow:0 0 20px #15A2AB;
}
@keyframes animateC
{
0%
{
transform:rotate(0deg);
}
100%
{
transform:rotate(360deg);
}
}
@keyframes animate
{
0%
{
transform:rotate(45deg);
}
100%
{
transform:rotate(405deg);
}
}
Resources
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment