diff --git a/src/Pages/HowItWorks/HowItWorks.tsx b/src/Pages/HowItWorks/HowItWorks.tsx index 61305a5..d12218b 100644 --- a/src/Pages/HowItWorks/HowItWorks.tsx +++ b/src/Pages/HowItWorks/HowItWorks.tsx @@ -43,7 +43,7 @@ export default function GalleryFeatures() {

Gallery Features

-
+
{steps.map((step, index) => (
{ - // start a 1s timer to set active only if remains hovered + // start a short timer to avoid accidental hover triggers hoverTimers.current[index] = window.setTimeout(() => { setActiveStep(index); hoverTimers.current[index] = null; - }, 1000); + }, 200); }} onMouseLeave={() => { // cancel timer if leaving early; if already active, hide immediately @@ -99,9 +99,9 @@ export default function GalleryFeatures() { animate={{ opacity: 1, height: "auto" }} exit={{ opacity: 0, height: 0 }} transition={{ duration: 0.3 }} - className="border-t border-gray-200 dark:border-gray-700 pt-4 mt-4" + className="border-t border-gray-200 dark:border-gray-700 pt-4 mt-4 overflow-hidden" > -

+

{step.details}