Drawing circles

In this example below you will see how to do a Drawing circles with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by ghyde03, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright ghyde03 ©
  • HTML
  • CSS
  • JavaScript
    
<div class="wrapper1">
  <div class="mask"></div>
</div>

/*Downloaded from https://www.codeseek.co/ghyde03/drawing-circles-rFAyI */
    .wrapper1{
  width: 125px;
  height: 125px;
  background: white;
  border-radius: 50%;
  position: relative;
  border: 15px solid transparent;
-webkit-animation: anime 5s infinite;
}
.pie{
  -webkit-animation: rotating 2s linear infinite;
}
@-webkit-keyframes rotating {
    from{
        -webkit-transform: rotate(0deg);
    }
    to{
        -webkit-transform: rotate(360deg);
    }
}


.spinner{
  position: absolute;
top:0;
  border-top: 15px solid red;
  border-right: 15px solid red;
  border-bottom: 15px solid red;
    border-left: 15px solid transparent;
  
  border-radius: 50%;
  -webkit-animation: pacman 5s linear infinite;
}

@-webkit-keyframes anime{
  
  0%{ -webkit-transform: rotate(0deg);}
25%{ }
50%{ /*border-right: 15px solid blue;*/}
75%{ /*border-bottom: 15px solid blue;*/
border-top: 15px solid blue;}
100%{ /*border-left: 15px solid blue;*/
/* border: 15px solid blue; */
-webkit-transform: rotate(360deg);}
}

@-webkit-keyframes pacman{
  
  0%{ }
100%{ border-left: 15px solid red;}
}


/*Downloaded from https://www.codeseek.co/ghyde03/drawing-circles-rFAyI */
    

Comments