Skip to content

Commit 6c1215d

Browse files
committed
animation tweaks
1 parent 223be80 commit 6c1215d

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

special-pages/pages/onboarding/app/components/v3/Background.module.css

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
.clouds {
4747
background-image: url("../../../public/assets/img/layer1.svg");
4848
background-position: top right;
49-
animation-name: offscreen;
49+
animation-name: offscreen-clouds;
50+
animation-duration: 50s;
5051

5152
@media (prefers-color-scheme: dark) {
5253
opacity: .1;
@@ -89,6 +90,7 @@
8990
display: none
9091
}
9192
}
93+
9294
@keyframes offscreen {
9395
from {
9496
transform: translateX(100vw);
@@ -98,3 +100,14 @@
98100
transform: translateX(0vw);
99101
}
100102
}
103+
104+
@keyframes offscreen-clouds {
105+
from {
106+
/* this accounts for clouds SVG having some 'whitespace' */
107+
transform: translateX(calc(100vw - 400px));
108+
}
109+
110+
to {
111+
transform: translateX(0vw);
112+
}
113+
}

0 commit comments

Comments
 (0)