<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 ---------->
<a href="#bottom-sheet" class="bsheet">SHOW BOTTOM SHEET</a>
<div id="bottom-sheet" class="overlay">
<aside class="social" tabindex="-1" role="dialog" aria-labelledby="modal-label" aria-hidden="true">
<ul class="menu">
<li><a class="facebook" target="_blank"> Facebook</a></li>
<li><a class="twitter" target="_blank">Twitter</a></li>
<li><a class="linkedin" target="_blank">LinkedIn</a></li>
<li><a class="reddit" target="_blank">Reddit</a></li>
<li><a class="whatsapp" target="_blank">WhatsApp</a></li>
<li><a class="email">E-mail</a></li>
</ul>
</aside>
<a href="#close" class="btn-close" aria-hidden="true"><span class="mdi mdi-close"></span><span class="sr-only">Close</span></a>
</div>
.overlay {
position: absolute;
right: 0;
left: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.16);
opacity: 0;
transition: all 450ms cubic-bezier(0.32, 1, 0.23, 1) 0ms;
}
.overlay .social {
position: fixed;
bottom: 0;
width: 100%;
background-color: #fff;
padding: 8px 24px 16px;
box-sizing: border-box;
box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.22), 0px 14px 56px rgba(0, 0, 0, 0.25);
transform: translate(0, 100%);
transition: all 450ms cubic-bezier(0.32, 1, 0.23, 1) 100ms;
}
.overlay .social ul {
text-align: justify;
-moz-columns: 74px 3;
columns: 74px 3;
vertical-align: bottom;
}
.overlay .social ul li {
width: 74px;
display: inline-block;
}
.overlay .social ul a {
display: block;
margin: 8px 0;
color: gray;
text-decoration: none;
text-align: center;
}
.overlay .social ul a span {
display: inline-block;
width: 100%;
}
.overlay .social .facebook span {
color: #3b5998;
}
.overlay .social .twitter span {
color: #00aced;
}
.overlay .social .linkedin span {
color: #007bb5;
}
.overlay .social .reddit span {
display: block;
width: 48px;
height: 48px;
margin: 0 auto;
border-radius: 2px;
background-color: #cee3f8;
color: #fff;
text-shadow: 1px 1px #000, -1px -1px #000, -1px 1px #000, 1px -1px #000;
}
.overlay .social .reddit span::after {
content: "";
display: block;
height: 4px;
width: 4px;
background-color: red;
border-radius: 50%;
position: relative;
top: -24px;
left: 16px;
box-shadow: 12px 0 red;
}
.overlay .social .whatsapp span {
color: #4dc247;
}
.overlay .btn-close {
color: #666;
transform: scale(0, 0);
transition: all 450ms ease-in-out 0;
}
.overlay:target {
display: block;
position: fixed;
top: 0;
opacity: 1;
z-index: 99;
}
.overlay:target .social {
transform: translate(0, 0);
z-index: 9;
}
.overlay:target .btn-close {
display: block;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
outline: 0 none;
transform: scale(1, 1);
}
@media screen and (min-width: 640px) {
.overlay {
padding: 0 19%;
}
.overlay .social {
max-width: 62%;
margin: 0 auto;
}
.overlay .social ul {
-moz-column-gap: 64px;
column-gap: 64px;
}
}
@media screen and (min-width: 960px) {
.overlay {
padding: 0 23.5%;
}
.overlay .social {
min-width: 384px;
max-width: 50%;
}
.overlay .social ul {
-moz-column-gap: 124px;
column-gap: 124px;
}
}
@media screen and (min-width: 1280px) {
.overlay {
padding: 0 26%;
}
.overlay .social {
min-width: 512px;
max-width: 48%;
}
}
@media screen and (min-width: 1440px) {
.overlay {
padding: 0 28%;
}
.overlay .social {
min-width: 576px;
max-width: 44%;
}
}
.mdi::before {
font-size: 24px;
line-height: 48px;
}
.social .mdi::before {
font-size: 48px;
}
.sr-only {
/* a generic way to visually hide content while remaining accessible to screen readers (h5bp.com) */
clip: rect(0 0 0 0);
overflow: hidden;
position: absolute;
height: 1px;
width: 1px;
}
.bsheet{
text-align: center;
display: block;
margin-top: 100px;
}