6
#codeVember #26/2021: progress bars
source link: https://codepen.io/thebabydino/pen/wvqVEMW
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
0 unsaved changes
xxxxxxxxxx
<progress id='p0' value='65' max='100'></progress>
<progress id='p1' value='65' max='100'></progress>
<progress id='p2' value='65' max='100'></progress>
<progress id='p3' value='65' max='100'></progress>
<progress id='p4' value='65' max='100'></progress>
<progress id='p5' value='65' max='100'></progress>
CSS (SCSS)
CSS (SCSS)
$h: 1em;
$r: .5*$h;
$b: .15em;
@mixin val() {
border-radius: $r - $b;
box-shadow: inset 0 .05em .05em rgba(#fff, .35);
background: var(--fill)
}
body {
display: grid;
grid-gap: 2vmin;
place-content: center;
margin: 0;
min-height: 100vh;
background: #262f3e
}
progress {
box-sizing: border-box;
border: solid $b #242b35;
width: 12.5em; height: $h;
JS (Babel)
JS (Babel)
xxxxxxxxxx
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK