Skip to content

Commit

Permalink
feat: controll progress circle transition css variable
Browse files Browse the repository at this point in the history
  • Loading branch information
junghyeonsu committed Sep 10, 2024
1 parent 0620b13 commit c763fb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,8 @@ const progressCircle = defineRecipe({
},
determinate: {
"indicator-path": {
"--seed-spinner-determinate-duration": "0.3s",
"--seed-spinner-determinate-timing-function": "cubic-bezier(0.35, 0.25, 0.65, 0.75)",

transition:
"stroke-dasharray var(--seed-spinner-determinate-duration) var(--seed-spinner-determinate-timing-function) 0s",
"stroke-dasharray var(--seed-spinner-determinate-duration, 0.3s) var(--seed-spinner-determinate-timing-function, cubic-bezier(0.35, 0.25, 0.65, 0.75)) 0s",
},
},
},
Expand Down
4 changes: 1 addition & 3 deletions packages/stylesheet/progressCircle.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@

}
.progressCircle__indicator-path--variant_determinate {
--seed-spinner-determinate-duration: 0.3s;
--seed-spinner-determinate-timing-function: cubic-bezier(0.35, 0.25, 0.65, 0.75);
transition: stroke-dasharray var(--seed-spinner-determinate-duration) var(--seed-spinner-determinate-timing-function) 0s
transition: stroke-dasharray var(--seed-spinner-determinate-duration, 0.3s) var(--seed-spinner-determinate-timing-function, cubic-bezier(0.35, 0.25, 0.65, 0.75)) 0s
}
@keyframes rotate {
from {
Expand Down

0 comments on commit c763fb2

Please sign in to comment.