Skip to content

Commit

Permalink
style: add animation to progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
ooooorobo committed Aug 4, 2023
1 parent f49d519 commit 0b9a61c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/client/view/share/components/HeaderSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,15 @@ const progressContainer = css`
border-radius: 5px;
background-color: var(--color-100);
@keyframes progress {
from {
width: 0;
}
to {
width: calc(var(--progress-ratio) * 1%);
}
}
&::before {
content: '';
position: absolute;
Expand All @@ -102,6 +111,7 @@ const progressContainer = css`
height: 100%;
border-radius: 5px;
background: var(--main-color);
animation: progress 0.8s ease-in-out;
}
progress {
Expand Down

0 comments on commit 0b9a61c

Please sign in to comment.