Skip to content

Commit

Permalink
Refactor #6691 - For ProgressBar
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Oct 31, 2024
1 parent 783b7f8 commit 605aa16
Showing 1 changed file with 37 additions and 36 deletions.
73 changes: 37 additions & 36 deletions packages/primevue/src/progressbar/style/ProgressBarStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,79 +40,80 @@ const theme = ({ dt }) => `
content: "";
position: absolute;
background: inherit;
top: 0;
left: 0;
bottom: 0;
will-change: left, right;
inset-block-start: 0;
inset-inline-start: 0;
inset-block-end: 0;
will-change: inset-inline-start, inset-inline-end;
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 {
content: "";
position: absolute;
background: inherit;
top: 0;
left: 0;
bottom: 0;
will-change: left, right;
inset-block-start: 0;
inset-inline-start: 0;
inset-block-end: 0;
will-change: inset-inline-start, inset-inline-end;
animation: p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
animation-delay: 1.15s;
}
@-webkit-keyframes p-progressbar-indeterminate-anim {
@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 {
@-webkit-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%;
}
}
@-webkit-keyframes p-progressbar-indeterminate-anim-short {
@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%;
}
}
@keyframes p-progressbar-indeterminate-anim-short {
@-webkit-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%;
}
}
`;
Expand Down

0 comments on commit 605aa16

Please sign in to comment.