Skip to content

Commit

Permalink
Refactor #352 - For ProgressBar
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Nov 8, 2024
1 parent c8ebb65 commit 336afe3
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions assets/styles/primevue/progressbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
}

.p-progressbar-indeterminate .p-progressbar-value::before {
@apply content-[''] absolute bg-inherit top-0 left-0 bottom-0 will-change-[left,right];
@apply content-[''] absolute bg-inherit top-0 start-0 bottom-0 will-change-[inset-inline-start,inset-inline-end];
}

.p-progressbar-indeterminate .p-progressbar-value::before {
animation: p-progressbar-indeterminate-anim 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
}

.p-progressbar-indeterminate .p-progressbar-value::after {
@apply content-[''] absolute bg-inherit top-0 left-0 bottom-0 will-change-[left,right];
@apply content-[''] absolute bg-inherit top-0 start-0 bottom-0 will-change-[inset-inline-start,inset-inline-end];

}

Expand All @@ -38,30 +38,30 @@

@keyframes p-progressbar-indeterminate-anim {
0% {
left: -35%;
right: 100%;
inset-inline-start: -35%;
inset-inline-end: 100%;
}
60% {
left: 100%;
right: -90%;
inset-inline-start: 100%;
inset-inline-end: -90%;
}
100% {
left: 100%;
right: -90%;
inset-inline-start: 100%;
inset-inline-end: -90%;
}
}

@keyframes p-progressbar-indeterminate-anim-short {
0% {
left: -200%;
right: 100%;
inset-inline-start: -200%;
inset-inline-end: 100%;
}
60% {
left: 107%;
right: -8%;
inset-inline-start: 107%;
inset-inline-end: -8%;
}
100% {
left: 107%;
right: -8%;
inset-inline-start: 107%;
inset-inline-end: -8%;
}
}
}

0 comments on commit 336afe3

Please sign in to comment.