"Social button hover effect"
Bootstrap 4.1.1 Snippet by Trends WD

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
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.4.1/css/all.css"
/>
<div class="container-fluid">
<div class="row">
<div class="middle381">
<a class="btn381" href="#">
<i class="fab fa-facebook-f"></i>
</a>
<a class="btn381" href="#">
<i class="fab fa-twitter"></i>
</a>
<a class="btn381" href="#">
<i class="fab fa-google"></i>
</a>
<a class="btn381" href="#">
<i class="fab fa-instagram"></i>
</a>
<a class="btn381" href="#">
<i class="fab fa-youtube"></i>
</a>
</div>
</div>
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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
body{
padding: 0;
margin: 0;
background: #4545ee;
}
.middle381{
position: absolute;
top: 50%;
transform: translateY(-50%);
width:100%;
text-align: center;
}
.btn381{
display: inline-block;
width: 90px;
height: 90px;
background: #f1f1f1;
margin: 10px;
border-radius: 30%;
box-shadow: 0 5px 15px -5px #00000070;
color: #3498db;
overflow: hidden;
position: relative;
}
.btn381 i{
line-height: 90px;
font-size: 26px;
transition: 0.2s linear;
}
.btn381:hover i{
transform: scale(1.3);
color: #f1f1f1;
}
.btn381::before{
content: "";
position: absolute;
width: 120%;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: