Skip to content

Commit

Permalink
hover effect and no user select (#398)
Browse files Browse the repository at this point in the history
Added a hover effect on the example cards in the hero and disabled user select for those.
  • Loading branch information
joel-wlf authored Jan 11, 2024
1 parent 5abc800 commit 705f43b
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions src/components/hero.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,31 @@ const Hero = () => {
</header>

<div className="md:flex flex-wrap justify-center animate-breeze sm:hidden ">
<img src={btw} alt="btw" className="rotate-2 h-[15%] w-[15%]" />
<img src={fyi} alt="fyi" className="-rotate-3 h-[15%] w-[15%]" />
<img src={idk} alt="idk" className="rotate-3 h-[15%] w-[15%]" />
<img src={ig} alt="if" className="rotate-6 h-[15%] w-[15%]" />
<img src={lfg} alt="lfg" className="-rotate-6 h-[15%] w-[15%]" />
<img
src={btw}
alt="btw"
className="select-none transition ease-in-out delay-75 hover:-rotate-1 hover:scale-105 rotate-2 h-[15%] w-[15%]"
/>
<img
src={fyi}
alt="fyi"
className="select-none transition ease-in-out delay-75 hover:rotate-0 hover:scale-105 -rotate-3 h-[15%] w-[15%]"
/>
<img
src={idk}
alt="idk"
className="select-none transition ease-in-out delay-75 hover:rotate-0 hover:scale-105 rotate-3 h-[15%] w-[15%]"
/>
<img
src={ig}
alt="if"
className="select-none transition ease-in-out delay-75 hover:rotate-3 hover:scale-105 rotate-6 h-[15%] w-[15%]"
/>
<img
src={lfg}
alt="lfg"
className="select-none transition ease-in-out delay-75 hover:-rotate-3 hover:scale-105 -rotate-6 h-[15%] w-[15%]"
/>
</div>

<Form />
Expand Down

1 comment on commit 705f43b

@vercel
Copy link

@vercel vercel bot commented on 705f43b Jan 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.