Skip to content

Commit 705f43b

Browse files
authored
hover effect and no user select (#398)
Added a hover effect on the example cards in the hero and disabled user select for those.
1 parent 5abc800 commit 705f43b

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

src/components/hero.jsx

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,31 @@ const Hero = () => {
4040
</header>
4141

4242
<div className="md:flex flex-wrap justify-center animate-breeze sm:hidden ">
43-
<img src={btw} alt="btw" className="rotate-2 h-[15%] w-[15%]" />
44-
<img src={fyi} alt="fyi" className="-rotate-3 h-[15%] w-[15%]" />
45-
<img src={idk} alt="idk" className="rotate-3 h-[15%] w-[15%]" />
46-
<img src={ig} alt="if" className="rotate-6 h-[15%] w-[15%]" />
47-
<img src={lfg} alt="lfg" className="-rotate-6 h-[15%] w-[15%]" />
43+
<img
44+
src={btw}
45+
alt="btw"
46+
className="select-none transition ease-in-out delay-75 hover:-rotate-1 hover:scale-105 rotate-2 h-[15%] w-[15%]"
47+
/>
48+
<img
49+
src={fyi}
50+
alt="fyi"
51+
className="select-none transition ease-in-out delay-75 hover:rotate-0 hover:scale-105 -rotate-3 h-[15%] w-[15%]"
52+
/>
53+
<img
54+
src={idk}
55+
alt="idk"
56+
className="select-none transition ease-in-out delay-75 hover:rotate-0 hover:scale-105 rotate-3 h-[15%] w-[15%]"
57+
/>
58+
<img
59+
src={ig}
60+
alt="if"
61+
className="select-none transition ease-in-out delay-75 hover:rotate-3 hover:scale-105 rotate-6 h-[15%] w-[15%]"
62+
/>
63+
<img
64+
src={lfg}
65+
alt="lfg"
66+
className="select-none transition ease-in-out delay-75 hover:-rotate-3 hover:scale-105 -rotate-6 h-[15%] w-[15%]"
67+
/>
4868
</div>
4969

5070
<Form />

0 commit comments

Comments
 (0)