Skip to content

Commit e810c5e

Browse files
kyleplochrisgarrity
authored andcommitted
Fix block direction in loading animation for RTL (#3316)
* Make loader blocks mirrored on RTL * Whoops, forgot to change names * Fix problems with flipping back
1 parent fc74672 commit e810c5e

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

src/components/loader/loader.css

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,18 @@
4242
animation: bottom-slide-in 1.5s ease infinite;
4343
}
4444

45+
[dir="rtl"] .top-block {
46+
animation: top-slide-in-rtl 1.5s ease infinite;
47+
}
48+
49+
[dir="rtl"] .middle-block {
50+
animation: middle-slide-in-rtl 1.5s ease infinite;
51+
}
52+
53+
[dir="rtl"] .bottom-block {
54+
animation: bottom-slide-in-rtl 1.5s ease infinite;
55+
}
56+
4557
@keyframes top-slide-in {
4658
0% {
4759
transform: translateY(50px);
@@ -88,6 +100,60 @@
88100
}
89101
}
90102

103+
@keyframes top-slide-in-rtl {
104+
0% {
105+
transform: translateY(50px) scaleX(-1);
106+
opacity: 0;
107+
}
108+
109+
33% {
110+
transform: translateY(0px) scaleX(-1);
111+
opacity: 1;
112+
}
113+
100% {
114+
transform: translateY(0px) scaleX(-1);
115+
opacity: 1;
116+
}
117+
}
118+
119+
@keyframes middle-slide-in-rtl {
120+
0% {
121+
transform: translateY(50px) scaleX(-1);
122+
opacity: 0;
123+
}
124+
125+
33% {
126+
transform: translateY(50px) scaleX(-1);
127+
opacity: 0;
128+
}
129+
130+
66% {
131+
transform: translateY(0px) scaleX(-1);
132+
opacity: 1;
133+
}
134+
100% {
135+
transform: translateY(0px) scaleX(-1);
136+
opacity: 1;
137+
}
138+
}
139+
140+
@keyframes bottom-slide-in-rtl {
141+
0% {
142+
transform: translateY(50px) scaleX(-1);
143+
opacity: 0;
144+
}
145+
146+
66% {
147+
transform: translateY(50px) scaleX(-1);
148+
opacity: 0;
149+
}
150+
151+
100% {
152+
transform: translateY(0px) scaleX(-1);
153+
opacity: 1;
154+
}
155+
}
156+
91157
.message-container-outer {
92158
height: 30px;
93159
overflow: hidden;

0 commit comments

Comments
 (0)