Skip to content

Commit

Permalink
tries conic gradient progress
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Muda committed May 19, 2023
1 parent 69ed57c commit 4fb1a8e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/components/_progress.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
@use "../_mixins.scss" as *;
@use "../_variables.scss" as *;
// Progress
.progress {
display: grid;
border-radius: 50%;
//border: 10px solid rgba(248, 0, 0, 0.5);
grid-area: 1/1/1/1;
place-items: center;
width: 100%;
aspect-ratio: 1;
//background-color: #bc26da;
background-image:
radial-gradient(circle, rgb(255, 255, 255) 55%, transparent 56%),
conic-gradient(transparent calc((var(--progress) - 1) * 1deg), rgba(0, 0, 0, 0.9) calc(var(--progress) * 1deg));
}
.progress::after {
// https://codepen.io/chandrashekhar/pen/RvMVey?editors=1100
}

//derepated
svg {
display: grid;
border-radius: inherit;
Expand Down

0 comments on commit 4fb1a8e

Please sign in to comment.