Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
feat(home-tabs): Integrate framer-motion for animated tab transitions
  • Loading branch information
arghyaxcodes committed Oct 29, 2025
commit 1e633917bb56eccc15c2ad4c61b57769ff64b872
11 changes: 9 additions & 2 deletions src/components/home/home-tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
type UnderlineTab,
} from "@/components/home/underline-tabs";
import { useDarkMode } from "@/hooks/useDarkMode";
import { motion } from "framer-motion";
import Image from "next/image";
import { SVGProps } from "react";

Expand Down Expand Up @@ -57,10 +58,16 @@ export default function HomeTabs() {
];

return (
<div className="flex w-full flex-col items-center">
<motion.div
className="flex w-full flex-col items-center"
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: "-100px" }}
transition={{ duration: 0.8, ease: "easeOut", delay: 0.1 }}
>
{/* Top Tab Navigation */}
<UnderlineTabs items={TAB_ITEMS} defaultValue="docs" className="w-full" />
</div>
</motion.div>
);
}

Expand Down
Loading