-
Notifications
You must be signed in to change notification settings - Fork 0
/
Skill.tsx
41 lines (36 loc) · 999 Bytes
/
Skill.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import {motion} from "framer-motion"
type Props = {
directionLeft?:boolean,
title:any
}
function Skill({directionLeft,title}: Props) {
return (
<div className="group relative flex cursor-pointer">
<motion.img
initial={{
x:directionLeft? -200:200,
opacity:0,
}}
transition ={{
duration:1,
}}
whileInView={{
opacity:1,
x:0,
}}
viewport={{
once:true
}}
src={title}
alt=""
className="xl:w-54 xl:h-54 z-0"
/>
<div className="absolute opacity-0 group-hover:opacity-100 ease-in-out group-hover:bg-gray h-24 w-24 md:w-28 xl:w-32 xl:h-32 rounded-full z-0 ">
<div className="flex items-center justify-center h-full ">
<p className="text-xs font-bold text-white opacity-100 bg-transparent z-30 ">100%</p>
</div>
</div>
</div>
)
}
export default Skill