Skip to content

prinx/3d-progress-bar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A 3D Progress Bar

Image

HTML

<div class="progress-container">
  <div class="progress" style="width: 75%;"></div>
</div>

CSS

.progress-container {
  position: relative;
  width: 70%;
  height: 10%;
  border-radius: 9999px;
  background-color: rgba(200, 200, 200, 0.5);
}
.progress {
  height: 100%;
  border-radius: 9999px;
  position: absolute;
  background: radial-gradient(circle at 100% 100%, rgba(50, 150, 0, 1), rgb(50 150 0 / 80%) 60%, rgba(50, 150, 0, 0.7));
  transition: width 0.2s ease-in-out;
}
.progress:before {
  content: "";
  position: absolute;
  top: 30%;
  left: 8%;
  width: 90%;
  height: 20%;
  border-radius: 9999px;
  -webkit-filter: blur(1px);
  filter: blur(1px);
  background: radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.4) 0, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.1) 100%);
}

You can also check this on CodePen.

License

MIT

About

A 3D Progress Bar

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published