"Social Media Toggle Button"
Bootstrap 4.0.0 Snippet by xrozix

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <h1 class="m-3">Social Media Toggle Button</h1> <p class="m-3 font-weight-bold">Click on Share Button <i class="fa fa-share-alt fa-2x"></i> to Expand the Social Icons</p> <div class="social-icons" id="s-icons"> <ul class="navbar-nav"> <li><a href="#" class="btn btn-primary btn-social "><i class="fa fa-facebook-official fa-2x"></i></a></li> <li><a href="#" class="btn btn-primary btn-social "><i class="fa fa-twitter-square fa-2x"></i></a></li> <li><a href="#" class="btn btn-primary btn-social "><i class="fa fa-youtube-play fa-2x"></i></a></li> </ul> <button class="btn btn-primary btn-social" id="btn-share" data-toggle="tooltip" data-placement="left" title="Tooltip on left"> <i class="fa fa-share-alt fa-2x"></i> </button> </div>
@import url('https://maxcdn.bootstrapcdn.com/font-awesome/4.6.0/css/font-awesome.min.css'); .social-icons { position: fixed; right: 20px; bottom: 20px; } .btn-social { cursor: pointer; width: 50px; height: 50px; border-radius: 50px; } .social-icons .navbar-nav li { position: absolute; bottom: 0; z-index: -1; transition: .2s all; } .social-icons .navbar-nav.show li:nth-child(1){bottom: 60px} .social-icons .navbar-nav.show li:nth-child(2){bottom: 120px} .social-icons .navbar-nav.show li:nth-child(3){bottom: 180px;}
$(document).ready(function(){ $('#s-icons').click(function() { $('.navbar-nav').toggleClass("show"); }); });

Related: See More


Questions / Comments: