Side navigation buttons.
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css">
<style type="text/css">
body{
margin: 0;
padding: 0;
font-family: "montserrat",sans-serif;
background: #333;
}
.contact-info{
position: fixed;
top: 40%;
z-index: 99999;
left: 0;
}
.option{
cursor: pointer;
position: relative;
}
.option i{
display: block;
width: 60px;
text-align: center;
height: 60px;
line-height: 60px;
background: #f1f1f1;
color: #b9b9b9;
font-size: 20px;
transition: 0.6s;
}
.option:hover i{
color: #3498db;
}
.text{
position: absolute;
height: 60px;
width: 200px;
background: #1b1b1b;
top: 0;
z-index: -1;
left: -140px;
color: #fff;
line-height: 60px;
text-align: center;
transition: 0.6s;
}
.option:hover .text{
left: 60px;
}
</style>
</head>
<body>
<div class="contact-info">
<div class="option">
<i class="fas fa-map-marker-alt"></i>
<div class="text">Location</div>
</div>
<div class="option">
<i class="far fa-envelope"></i>
<div class="text">example@gmail.com</div>
</div>
<div class="option">
<i class="fas fa-mobile-alt"></i>
<div class="text">61469</div>
</div>
</div>
</body>
</html>