mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-28 19:00:35 +01:00
fix(Progress): handle carousel and carousel-inverse animations in RTL mode (#2400)
Co-authored-by: malik jouda <m.jouda@approved.tech>
This commit is contained in:
@@ -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 {
|
&.bar-animation-carousel-inverse {
|
||||||
&:after {
|
&:after {
|
||||||
animation: carousel-inverse 2s ease-in-out infinite;
|
animation: carousel-inverse 2s ease-in-out infinite;
|
||||||
@@ -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 {
|
&.bar-animation-swing {
|
||||||
&:after {
|
&:after {
|
||||||
animation: swing 3s ease-in-out infinite;
|
animation: swing 3s ease-in-out infinite;
|
||||||
@@ -315,6 +343,22 @@ progress:indeterminate {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@keyframes carousel-rtl {
|
||||||
|
|
||||||
|
0%,
|
||||||
|
100% {
|
||||||
|
width: 50%
|
||||||
|
}
|
||||||
|
|
||||||
|
0% {
|
||||||
|
transform: translateX(100%)
|
||||||
|
}
|
||||||
|
|
||||||
|
100% {
|
||||||
|
transform: translateX(-200%)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@keyframes carousel-inverse {
|
@keyframes carousel-inverse {
|
||||||
|
|
||||||
0%,
|
0%,
|
||||||
@@ -331,6 +375,22 @@ progress:indeterminate {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@keyframes carousel-inverse-rtl {
|
||||||
|
|
||||||
|
0%,
|
||||||
|
100% {
|
||||||
|
width: 50%
|
||||||
|
}
|
||||||
|
|
||||||
|
0% {
|
||||||
|
transform: translateX(-200%)
|
||||||
|
}
|
||||||
|
|
||||||
|
100% {
|
||||||
|
transform: translateX(100%)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@keyframes swing {
|
@keyframes swing {
|
||||||
|
|
||||||
0%,
|
0%,
|
||||||
|
|||||||
Reference in New Issue
Block a user