Created
September 1, 2024 14:13
-
-
Save prinx/a50774c60bf99fdba39615e719aca3a2 to your computer and use it in GitHub Desktop.
3D Progress bar
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="progress-container"> | |
| <div class="progress" style="width: 75%;"></div> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .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%); | |
| } | |
| html, body { | |
| height: 100%; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment