Button Hover Effect | HTML & CSS |








Source Code:--

<!DOCTYPE html>
<html lang="en" dir="ltr">

<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.css">
<style>
body{
margin: 0;
padding: 0;
font-family: "montserrat",sans-serif;
background: #f1f1f1;
display: flex;
height: 100vh;
align-items: center;
justify-content: center;
}
.share-button{
width: 280px;
height: 80px;
background: #dfe6e9;
display: flex;
border-radius: 40px;
align-items: center;
justify-content: center;
overflow: hidden;
position: relative;
cursor: pointer;
transition: .3s linear;
}
.share-button:hover{
transform: scale(1.1);
}
.share-button span{
position: absolute;
width: 100%;
height: 100%;
background-image: url(avernger.jpg);
color: #f1f1f1;
background-size: cover;
padding: 2px;
text-align: center;
line-height: 80px;
z-index: 999;
transition: .6s linear;
border-radius: 40px;
}
.share-button span img{
width: 70px;
height: 70px;
padding: 5px;
}
.share-button:hover span{
transform:  translateX(-100%);
transition-delay: .3s;
}
.share-button a{
flex: 1;
font-size: 26px;
color: #ff0000;
text-align: center;
transform: translateX(-100%);
opacity: 0;
transition: 0.3s linear;
}
.share-button:hover a{
opacity: 1;
transform: translateX(0);
}
.share-button a:nth-child(1){
transition-delay: 1s;
}
.share-button a:nth-child(2){
transition-delay: 0.8s;
}
.share-button a:nth-child(3){
transition-delay: 0.6s;
}
.share-button a:nth-child(4){
transition-delay: 0.4s;
}
</style>
</head>

<body>

<div class="share-button">
<span></span>
<a href="https://www.marvel.com/characters/captain-america-steve-rogers"><img src="https://img.icons8.com/color/48/000000/captain-america.png"/></a>
<a href="https://www.marvel.com/characters/iron-man-tony-stark"><img src="https://img.icons8.com/doodle/48/000000/iron-man.png"/></a>
<a href="https://www.marvel.com/characters/spider-man-peter-parker"><img src="https://img.icons8.com/color/48/000000/spiderman-head.png"/></a>
<a href="https://www.marvel.com/characters/thanos"><img src="https://img.icons8.com/color/48/000000/thanos.png"/></a>
</div>
</body>

</html>