Skip to content

Commit 03df2b1

Browse files
committed
transition in onboarding
1 parent 3e2b4ee commit 03df2b1

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

src/pages/skin-tool/template/Onboarding.css

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
1-
/* Transition styles for the Onboarding component */
2-
31
.transition {
42
opacity: 0;
5-
transform: translateY(40px);
6-
animation: fadeIn 0.8s ease-out 0.2s forwards;
3+
animation: slideIn 2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
74
}
85

9-
@keyframes fadeIn {
6+
@keyframes slideIn {
107
0% {
118
opacity: 0;
129
transform: translateY(40px);
10+
filter: blur(5px);
1311
}
1412
100% {
1513
opacity: 1;
1614
transform: translateY(0);
15+
filter: blur(0px);
1716
}
1817
}
1918

src/pages/skin-tool/template/Onboarding.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ const StepHeader = ({
8181

8282
<Align x="center" width={872}>
8383
<ResponsiveLayout>
84-
<Boxed>
85-
<div className="transition">{children}</div>
86-
</Boxed>
84+
<div className="transition">
85+
<Boxed>{children}</Boxed>
86+
</div>
8787
</ResponsiveLayout>
8888
</Align>
8989
</Stack>

0 commit comments

Comments
 (0)