From df91be7e3e2f9a7913c907fdfc1d5836be31315e Mon Sep 17 00:00:00 2001 From: d3v1l0n Date: Sun, 29 Dec 2024 04:27:16 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20animation=20smoothness=20?= =?UTF-8?q?optimixation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/home/FeatureCard.tsx | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/components/home/FeatureCard.tsx b/src/components/home/FeatureCard.tsx index a9c6b81f..cb7a9edf 100644 --- a/src/components/home/FeatureCard.tsx +++ b/src/components/home/FeatureCard.tsx @@ -1,5 +1,6 @@ import { motion } from 'framer-motion'; import { LucideIcon } from 'lucide-react'; +import clsx from 'clsx'; // Optional, for cleaner class management interface FeatureCardProps { title: string; @@ -18,18 +19,27 @@ export function FeatureCard({ title, description, icon: Icon, delay = 0 }: Featu whileHover={{ y: -5 }} className="relative group" > -
+
{/* Hover gradient overlay */}
{/* Icon centered with hover effect */}
- +
{/* Title with enhanced typography */} -

{title}

- +

{title}

+ {/* Description with improved readability */}

{description}