Created
October 18, 2024 17:58
-
-
Save calvinusesyourcode/02647d89a5c9f348ae11c66f185de255 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @see https://tailwindcss.com/docs/hover-focus-and-other-states */ | |
export default function NotHover() { | |
const items = ['Home', 'Products', 'Pricing'] | |
return ( | |
<div className="flex justify-center items-center h-screen w-screen relative overflow-hidden "> | |
<img src="/desert.png" className="absolute inset-0 w-full h-full object-cover" /> | |
<div className="bg-transparent group grid grid-cols-3 gap-4 relative z-10 font-bold text-white select-none"> | |
{items.map((item, index) => ( | |
<div key={index} className={'m-4 text-center transition-all duration-300 ease-in-out group-has-[:hover]:blur-sm hover:!blur-none hover:cursor-pointer hover:scale-105'}> | |
<p>{item}</p> | |
</div> | |
))} | |
</div> | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment