Skip to content

Commit cc9cebf

Browse files
Merge pull request #688 from prathamkhatwani/fix-hover-delay
Fix hover delay in project cards for improved responsiveness
2 parents e9ed420 + 19c57b3 commit cc9cebf

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/components/products/CardProduct.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ export function CardProduct({ product }) {
1717
initial={{ opacity: 0, y: 30 }}
1818
whileInView={{ opacity: 1, y: 0 }}
1919
viewport={{ once: true }}
20-
transition={{ duration: 0.5 }}
20+
2121
whileHover={{ y: -5 }}
22-
className="group relative flex flex-col items-center p-6 bg-white dark:bg-zinc-800/50 rounded-2xl shadow-lg hover:shadow-xl transition-all duration-300 border border-zinc-200 dark:border-zinc-700 hover:border-[#00843D] dark:hover:border-yellow-400 h-full"
22+
transition={{ duration: 0.2, ease: "easeOut" }}
23+
className="group relative flex flex-col items-center p-6 bg-white dark:bg-zinc-800/50 rounded-2xl shadow-lg hover:shadow-xl transition-transform duration-200 border border-zinc-200 dark:border-zinc-700 hover:border-[#00843D] dark:hover:border-yellow-400 h-full"
2324
>
2425
<div className="relative w-24 h-24 mb-4">
2526
<Image

0 commit comments

Comments
 (0)