HTML:
Kod:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSS Dersleri</title>
<!-- Sayfaya dosyayı bu şekilde ekliyoruz! -->
<link rel="stylesheet" href="https://www.webailesi.com/yonlendir.php?link=style.css">
<!-- fontawesome -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0-2/js/all.min.js"></script>
</head>
<body>
<div class="share-button">
<span>Paylaş</span>
<a href="https://www.webailesi.com/yonlendir.php?link=%23" ><i class="fab fa-facebook-f"></i></a>
<a href="https://www.webailesi.com/yonlendir.php?link=%23" ><i class="fab fa-twitter"></i></a>
<a href="https://www.webailesi.com/yonlendir.php?link=%23" ><i class="fab fa-instagram"></i></a>
<a href="https://www.webailesi.com/yonlendir.php?link=%23" ><i class="fab fa-linkedin-in"></i></a>
</div>
</body>
</html>Kod:
body{
background: #f1f1f1;
margin: 0;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
}
.share-button {
widith: 280px;
height: 80px;
background: #dfe6e9;
border-radius: 40px;
display: flex;
align-items: center;
justify-content: center;
padding: 0 50px;
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: #2d3436;
color: #f1f1f1;
text-align: center;
line-height: 80px;
z-index: 999;
transition: .6s linear;
border-radius: 40px;
}
.share-button:hover span{
transform: translateX(-100%);
transition-delay: .3s;
}
.share-button a {
flex: 1;
font-size: 26px;
margin-right: 20px;
color: #2d3436;
text-align: center;
transform: translateX(-100%);
opacity: 0;
transition: .3s linear;
}
.share-button:hover a {
opacity: 1;
transform: translateX(0);
}
.share-button a:nth-of-type(1){
transition-delay: 1s;
}
.share-button a:nth-of-type(2){
transition-delay: .8s;
}
.share-button a:nth-of-type(3){
transition-delay: .6s;
}
.share-button a:nth-of-type(4){
transition-delay: .4s;
}


)

