<div class="btn_wrap">
<span>Share</span>
<div class="container">
<i class="fab fa-facebook-f"></i>
<i class="fab fa-twitter"></i>
<i class="fab fa-instagram"></i>
<i class="fab fa-github"></i>
</div>
</div>
<a href="https://dribbble.com/YancyMin" class="dr-url" target="_blank"><img class="dr" src="https://cdn.dribbble.com/assets/logo-footer-hd-a05db77841b4b27c0bf23ec1378e97c988190dfe7d26e32e1faea7269f9e001b.png" alt=""></a>
* {
margin: 0;
padding: 0;
}
body {
display: box;
display: flexbox;
display: flex;
box-pack: center;
flex-pack: center;
justify-content: center;
box-align: center;
flex-align: center;
align-items: center;
height: 100vh;
background-color: #FEFEFE;
}
i {
opacity: 0;
font-size: 28px;
color: #1F1E1E;
will-change: transform;
transform: scale(.1);
transform: scale(.1);
transition: all .3s ease;
transition: all .3s ease;
}
.btn_wrap {
position: relative;
display: box;
display: flexbox;
display: flex;
box-pack: center;
flex-pack: center;
justify-content: center;
box-align: center;
flex-align: center;
align-items: center;
overflow: hidden;
cursor: pointer;
width: 240px;
height: 72px;
background-color: #EEEEED;
border-radius: 80px;
padding: 0 18px;
will-change: transform;
transition: all .2s ease-in-out;
transition: all .2s ease-in-out;
}
.btn_wrap:hover {
/* transition-delay: .4s; */
transform: scale(1.1);
transform: scale(1.1)
}
span {
position: absolute;
z-index: 99;
width: 240px;
height: 72px;
border-radius: 80px;
font-family: system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-size: 20px;
text-align: center;
line-height: 70px;
letter-spacing: 2px;
color: #EEEEED;
background-color: #1F1E1E;
padding: 0 18px;
transition: all 1.2s ease;
transition: all 1.2s ease;
}
.container {
display: box;
display: flexbox;
display: flex;
flex-pack: distribute;
justify-content: space-around;
box-align: center;
flex-align: center;
align-items: center;
width: 240px;
height: 64px;
border-radius: 80px;
}
.container i:nth-of-type(1) {
transition-delay: 1.1s;
transition-delay: 1.1s;
}
.container i:nth-of-type(2) {
transition-delay: .9s;
transition-delay: .9s;
}
.container i:nth-of-type(3) {
transition-delay: .7s;
transition-delay: .7s;
}
.container i:nth-of-type(4) {
transition-delay: .4s;
transition-delay: .4s;
}
.btn_wrap:hover span {
transition-delay: .25s;
transition-delay: .25s;
transform: translateX(-280px);
transform: translateX(-280px)
}
.btn_wrap:hover i {
opacity: 1;
transform: scale(1);
transform: scale(1);
}
.dr {
position: absolute;
bottom: 16px;
right: 16px;
width:100px;
}
This Pen doesn't use any external JavaScript resources.