Social Media Icon
OUTPUT:-
HTML:-
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.js" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60=" crossorigin="anonymous">
</script>
<link rel="stylesheet" href="style.css">
<title>Social Media Icon</title>
</head>
<body>
<h2 class="text">Social Media Icon</h2>
<ul>
<li>
<a href="#"><i class="fab fa-facebook-f icon"></i></a>
</li>
<li>
<a href="#"><i class="fab fa-twitter icon"></i></a>
</li>
<li>
<a href="#"><i class="fab fa-linkedin-in icon"></i></a>
</li>
<li>
<a href="#"><i class="fab fa-instagram icon"></i></a>
</li>
<li>
<a href="#"><i class="fab fa-whatsapp icon"></i></a>
</li>
</ul>
</body>
</html>
CSS:-
body {
margin: 0;
padding:0;
background: #262626;
}
.text{
padding-top: 300px;
padding-bottom: 50px;
text-align: center;
font-size: 50px;
font-variant: small-caps;
color: #6b6a6a;
}
ul {
display: flex;
position: absolute;
left: 50%;
transform: translate(-50%, -50%);
}
ul li {
list-style: none;
}
ul li a {
width: 80px;
height: 80px;
background-color: #fff;
text-align: center;
line-height: 80px;
font-size: 35px;
margin: 0 10px;
display: block;
border-radius: 50%;
position: relative;
overflow: hidden;
border: 3px solid #fff;
z-index: 1;
}
ul li a .icon {
position: relative;
color: #262626;
transition: .5s;
z-index: 3;
}
ul li a:hover .icon {
color: #fff;
transform: rotateY(360deg);
}
ul li a:before {
content: "";
position: absolute;
top: 100%;
left: 0;
width: 100%;
height: 100%;
background: #f00;
transition: .5s;
z-index: 2;
}
ul li a:hover:before {
top: 0;
}
ul li:nth-child(1) a:before{
background: #3b5999;
}
ul li:nth-child(2) a:before{
background: #55acee;
}
ul li:nth-child(3) a:before {
background: #0077b5;
}
ul li:nth-child(4) a:before {
background: #dd4b39;
}
ul li:nth-child(5) a:before {
background: #07db00;
}