Skip to content

Commit

Permalink
fix(Progress): handle carousel and carousel-inverse animations in…
Browse files Browse the repository at this point in the history
… RTL mode (#2400)

Co-authored-by: malik jouda <[email protected]>
  • Loading branch information
malik-jouda and MalikJouda authored Oct 17, 2024
1 parent 1b7e36c commit 20fb46a
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions src/runtime/components/elements/Progress.vue
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,20 @@ progress:indeterminate {
}
}
[dir=rtl] &.bar-animation-carousel {
&:after {
animation: carousel-rtl 2s ease-in-out infinite;
}
&::-webkit-progress-value {
animation: carousel-rtl 2s ease-in-out infinite;
}
&::-moz-progress-bar {
animation: carousel-rtl 2s ease-in-out infinite;
}
}
&.bar-animation-carousel-inverse {
&:after {
animation: carousel-inverse 2s ease-in-out infinite;
Expand All @@ -270,6 +284,20 @@ progress:indeterminate {
}
}
[dir=rtl] &.bar-animation-carousel-inverse {
&:after {
animation: carousel-inverse-rtl 2s ease-in-out infinite;
}
&::-webkit-progress-value {
animation: carousel-inverse-rtl 2s ease-in-out infinite;
}
&::-moz-progress-bar {
animation: carousel-inverse-rtl 2s ease-in-out infinite;
}
}
&.bar-animation-swing {
&:after {
animation: swing 3s ease-in-out infinite;
Expand Down Expand Up @@ -315,6 +343,22 @@ progress:indeterminate {
}
}
@keyframes carousel-rtl {
0%,
100% {
width: 50%
}
0% {
transform: translateX(100%)
}
100% {
transform: translateX(-200%)
}
}
@keyframes carousel-inverse {
0%,
Expand All @@ -331,6 +375,22 @@ progress:indeterminate {
}
}
@keyframes carousel-inverse-rtl {
0%,
100% {
width: 50%
}
0% {
transform: translateX(-200%)
}
100% {
transform: translateX(100%)
}
}
@keyframes swing {
0%,
Expand Down

0 comments on commit 20fb46a

Please sign in to comment.