hide a circle border

In this example below you will see how to do a hide a circle border with some HTML / CSS and Javascript

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

/*Downloaded from https://www.codeseek.co/maximus8891/hide-a-circle-border-mmrNwa */
    * {
  box-sizing: border-box;
}
.c {
  width: 100px;
  height: 100px;
  position: relative;
  margin: 50px auto;
  background: rgb(200,200,200);
  padding: 20px;
}

.bullet {
  overflow: hidden;
  position: relative;
  width: 20px;
  height: 20px;
}

.dot {
  width: 13px;
  height: 13px;
  border-radius: 100%;
  transform: translate3d(3.5px, 3.5px, 0);
  position: relative;
  background: white;
  z-index: 20;
}

.cover {
  position: absolute;
  animation: cov 3s infinite;
  overflow: hidden;
  z-index: 10;
  top: 0;
}

@keyframes cov {
  50% {
    transform: translate3d(0, 21px, 0);
  }
}

@keyframes covRev {
  50% {
    transform: translate3d(0, -21px, 0);
  }
}

.circle {
  width: 20px;
  height: 20px;
  border: 1px solid black;
  border-radius: 100%;
  animation: covRev 3s infinite;
}


/*Downloaded from https://www.codeseek.co/maximus8891/hide-a-circle-border-mmrNwa */
    

Comments