Skip to content

Commit e199dea

Browse files
committed
Feat: 로딩 화면 추가
1 parent d678429 commit e199dea

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

components/home-animation.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,29 +19,31 @@ export function HeaderSection({
1919
return (
2020
<section className="space-y-2 sm:space-y-3 md:space-y-4">
2121
<h1 className="text-lg sm:text-xl lg:text-2xl font-bold">{title}</h1>
22-
<p className="text-sm sm:text-base text-muted-foreground">{description}</p>
22+
<p className="text-sm sm:text-base text-muted-foreground">
23+
{description}
24+
</p>
2325
</section>
2426
);
2527
}
26-
28+
2729
return (
2830
<motion.section
2931
className="space-y-2 sm:space-y-3 md:space-y-4"
30-
initial={{ opacity: 0, y: 20 }}
32+
initial={{ opacity: 0.3, y: 20 }}
3133
animate={{ opacity: 1, y: 0 }}
3234
transition={{ duration: 0.2, ease: "easeOut" }}
3335
>
3436
<motion.h1
3537
className="text-lg sm:text-xl lg:text-2xl font-bold"
36-
initial={{ opacity: 0 }}
38+
initial={{ opacity: 0.3 }}
3739
animate={{ opacity: 1 }}
3840
transition={{ delay: 0.1, duration: 0.2 }}
3941
>
4042
{title}
4143
</motion.h1>
4244
<motion.p
4345
className="text-sm sm:text-base text-muted-foreground"
44-
initial={{ opacity: 0 }}
46+
initial={{ opacity: 0.3 }}
4547
animate={{ opacity: 1 }}
4648
transition={{ delay: 0.15, duration: 0.2 }}
4749
>
@@ -65,10 +67,10 @@ export function PostGrid({ children }: { children: ReactNode }) {
6567
</section>
6668
);
6769
}
68-
70+
6971
return (
7072
<motion.section
71-
initial={{ opacity: 0 }}
73+
initial={{ opacity: 0.3 }}
7274
animate={{ opacity: 1 }}
7375
transition={{ delay: 0.2, duration: 0.2 }}
7476
>
@@ -88,7 +90,7 @@ export function PostItem({
8890
}) {
8991
return (
9092
<motion.div
91-
initial={{ opacity: 0, y: 20 }}
93+
initial={{ opacity: 0.3, y: 20 }}
9294
animate={{ opacity: 1, y: 0 }}
9395
transition={{
9496
delay: 0.05 * (index % 3) + 0.25,

0 commit comments

Comments
 (0)