
HTML & CSS:
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<style>
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body{
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: #101010;
color: white;
}
.box{
width: 150px;
height: 55px;
background: white;
border-radius: 10px;
cursor: pointer;
position: relative;
display: flex;
justify-content: center;
align-items: center;
}
.box a{
margin: 5px;
color: #1c1c1c;
}
.box a:hover{
color: #3683ff;
text-shadow: 0 0 20px #3683ff9f;
}
.top{
position: absolute;
background: #0d0d0d;
top: -1%;
width: 102%;
height: 71%;
border-radius: 10px 10px 0 0;
display: flex;
justify-content: center;
align-items: center;
transition: all .4s;
text-shadow: 0 0 20px #3683ff9f;
}
.top p{
transition: all .4s;
}
.bottom{
position: absolute;
background: #0d0d0d;
bottom: -1%;
width: 102%;
height: 31%;
border-radius: 0 0 10px 10px;
transition: all .4s;
}
.bottom::before{
content: '';
position: absolute;
top: 0;
left: 50%;
transform: translate(-50%);
width: 60%;
height: 2px;
background: #ffffff;
transition: all .2s;
}
.box:hover .bottom::before{
transform: translate(-50%, 380%);
background: #3683ff;
box-shadow: 0 0 20px #3683ff9f;
}
.box:hover .top{
transform: translateY(-80%);
}
.box:hover .top p{
color: #3683ff;
text-shadow: 0 0 20px #3683ff;
}
.box:hover .bottom{
transform: translateY(38%);
}
</style>
<div class="box">
<div class="top">
<p>SHARE</p>
</div>
<div class="bottom"></div>
<a href="#"><i class="fa-brands fa-instagram fa-2x"></i></a>
<a href="#"><i class="fa-brands fa-facebook-square fa-2x"></i></a>
<a href="#"><i class="fa-brands fa-linkedin fa-2x"></i></a>
</div>