Skip to content

Commit c6f7055

Browse files
committed
animation s in footer removed for perfomance
1 parent 88352fa commit c6f7055

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

components/layout/Footer.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,22 @@ const Footer = () => {
2929
>
3030
<span className="sr-only">{link.title}</span>
3131
<Image
32-
src={link.icon || "/placeholder.svg"}
32+
src={link.icon}
3333
alt={`${link.title} icon`}
3434
width={24}
3535
height={24}
36+
loading="lazy"
3637
className="w-6 h-6 object-contain"
3738
/>
3839
</Link>
3940
))}
4041
</div>
4142
</div>
42-
<nav className="mt-8 md:mt-0 animate-slide-up" style={{ animationDelay: "0.2s" }}>
43+
<nav className="mt-8 md:mt-0 animate-slide-up">
4344
<h3 className="text-sm font-semibold text-foreground tracking-wider uppercase mb-4">Navigation</h3>
4445
<ul className="space-y-2">
45-
{navLinks.map((link, index) => (
46-
<li key={link.href} className="animate-slide-up" style={{ animationDelay: `${0.3 + index * 0.1}s` }}>
46+
{navLinks.map((link) => (
47+
<li key={link.href} className="animate-slide-up">
4748
<Link
4849
href={link.href}
4950
className="text-base text-muted-foreground hover:text-foreground transition-colors duration-300 hover:translate-x-1 inline-block"
@@ -52,7 +53,7 @@ const Footer = () => {
5253
</Link>
5354
</li>
5455
))}
55-
<li className="animate-slide-up" style={{ animationDelay: `${0.3 + navLinks.length * 0.1}s` }}>
56+
<li className="animate-slide-up">
5657
<Link
5758
href={"/resume"}
5859
className="text-base text-muted-foreground hover:text-foreground transition-colors duration-300 hover:translate-x-1 inline-block"
@@ -63,7 +64,7 @@ const Footer = () => {
6364
</ul>
6465
</nav>
6566
</div>
66-
<div className="mt-8 border-t border-gray-200 pt-4 animate-fade-in" style={{ animationDelay: "0.5s" }}>
67+
<div className="mt-8 border-t border-gray-200 pt-4 animate-fade-in">
6768
<p className="text-sm text-muted-foreground text-center">
6869
&copy; {year} {profile.name}. All rights reserved.
6970
</p>

0 commit comments

Comments
 (0)