"Social media icon floating on sharing"
Bootstrap 4.1.1 Snippet by Reason706

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<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="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<div class="share">
<div class="toggle"></div>
<ul>
<li><a href="#"><i class="fa fa-facebook" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-twitter" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-google-plus" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-linkedin" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-instagram" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-skype" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-tumblr" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-whatsapp" aria-hidden="true"></i></a></li>
</ul>
</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 {
margin:0;
padding:0;
background:#003030;
}
.share {
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%) rotate(45deg);
width:80px;
height:80px;
}
.share ul {
position:relative;
margin:0;
padding:0;
width:100%;
height:100%;
}
.share ul li {
position:absolute;
top:0;
left:0;
list-style:none;
width:100%;
height:100%;
border-radius:10px;
background:#fff;
transition:0.5s;
overflow:hidden;
}
.share ul.active li {
transform:scale(0.95);
}
.share ul li a {
position:absolute;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
$(document).ready(function(){
$('.toggle').click(function(){
$('.toggle').toggleClass('active');
$('ul').toggleClass('active');
});
});
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: