Skip to content

Commit a5342ab

Browse files
committed
Remove loading animation
1 parent e005967 commit a5342ab

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

frontend/src/components/Animations/FadeInAnimation.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const FadeInAnimation = ({ children, delay = 0, yInitial = 30, className }: Fade
1717
animate={{ opacity: 1, y: 0 }}
1818
transition={{
1919
duration: 0.5,
20+
ease: "easeOut",
2021
delay,
2122
}}
2223
className={className}

frontend/src/components/Animations/Loading.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const Loading = () => {
6060
willChange: 'opacity',
6161
}}
6262
>
63-
<div className="w-80 h-3 bg-gray-700 rounded-full overflow-hidden">
63+
<div className="w-96 h-3 bg-gray-700 rounded-full overflow-hidden">
6464
<motion.div
6565
className="h-full bg-gradient-to-r from-blue-400 to-blue-500 rounded-full"
6666
initial={{ width: "0%" }}

frontend/src/components/Animations/ScrollEnterAnimation.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ const ScrollEnterAnimation = ({ children, delay = 0 }: ScrollEnterProps) => {
1111

1212
return (
1313
<motion.div
14-
initial={{ opacity: 0, y: 30 }}
14+
initial={{ opacity: 0, y: 50 }}
1515
whileInView={{ opacity: 1, y: 0 }}
1616
transition={{
17-
duration: 0.6,
17+
duration: 0.5,
18+
ease: "easeOut",
1819
delay,
1920
}}
2021
viewport={{ amount: 0.3, once: true }}

frontend/src/components/Background.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const Background = () => {
88
useEffect(() => {
99
const timer = setTimeout(() => {
1010
setShouldLoad(true);
11-
}, 900);
11+
}, 700);
1212

1313
return () => clearTimeout(timer);
1414
}, []);

frontend/src/components/Landing/index.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
11
import Background from '@/components/Background';
2-
import Loading from '../Animations/Loading';
32
import FadeInAnimation from '../Animations/FadeInAnimation';
43
import React from 'react';
54

65
const Landing = () => {
76
const animationSequence = {
87
h1: 0.1,
98
h2: 0.2,
10-
background: 2.5,
9+
background: 2,
1110
};
1211

1312
return (
1413
<section
1514
className="flex flex-col min-h-screen justify-end py-8 xl:px-24 md:px-10 px-5 relative overflow-hidden"
1615
id="landing"
1716
>
18-
<Loading />
1917
<FadeInAnimation
2018
delay={animationSequence.background}
2119
yInitial={0}
22-
className='absolute'
20+
className='absolute w-full h-full'
2321
>
2422
<Background />
2523
</FadeInAnimation>

0 commit comments

Comments
 (0)