Log in
Start Coding
All
Accordion
border
Buttons
Cards
Carousel
Css Animation
Hexagons
Hover
Layout
Loaders
Menu
Navigation
Slider
Tables
Wave
All
🗲
* { box-sizing: border-box; margin: 0; padding: 0; user-select: none; } body { width: 100vw; height: 100vh; background: rgb(100, 100, 100); display: flex; flex-direction: column; justify-content: center; align-items: center; } #battery { display: flex; flex-direction: column; justify-content: center; align-items: center; } #tip { height: 20px; width: 50px; background: rgb(200, 200, 200); } #base { border: 5px solid rgb(200, 200, 200); background: black; width: 125px; height: 250px; display: flex; flex-direction: column; justify-content: end; align-items: center; } #battery-progress-bar { position: relative; height: 100%; width: 100%; background: rgb(50, 150, 50); display: flex; font-weight: bold; font-size: 1.5rem; text-shadow: 0 0 15px rgb(200, 200, 200); justify-content: center; align-items: center; animation-name: batteryChange; animation-iteration-count: infinite; animation-direction: alternate; animation-duration: 15s; } #charging-symbol { position: absolute; color: rgb(200, 200, 200); text-shadow: 0 0 1px black, 0 0 2.5px black; font-size: 3rem; height: 250px; width: 125px; opacity: 0; display: flex; justify-content: center; align-items: center; animation-name: flashingCharge; animation-duration: 15s; animation-iteration-count: infinite; animation-direction: alternate; } @keyframes flashingCharge { 0% { opacity: 1 } 5% { opacity: 0 } 10% { opacity: 1 } 15% { opacity: 0 } 20% { opacity: 1 } 25% { opacity: 0 } 30% { opacity: 1 } 35% { opacity: 0 } 40% { opacity: 1 } 50% { opacity: 0 } } #charging-symbol:hover { opacity: 1; } @keyframes batteryChange { 0% { background: rgb(150, 50, 5); height: 0%; } 40% { background: rgb(150, 50, 5); } 50% { background: rgb(200, 175, 100); } 70% { background: rgb(50, 150, 50); } } @keyframes batteryChangeV2 { from { background: rgb(150, 50, 5); height: 0%; } to { background: rgb(50, 150, 50); height: 100%; } }
0
Battery Charging Progress
By:
Nethan Pogi
Previous
1
…
19
20
21