<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=">
<title>Animated Social media icons</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css" />
</head>
<body>
<div class="sm">
<a href="#"><i class="fab fa-facebook-f"></i></a>
<a href="#"><i class="fab fa-twitter"></i></a>
<a href="#"><i class="fab fa-instagram"></i></a>
<a href="#"><i class="fab fa-youtube"></i></a>
<a href="#"><i class="fab fa-linkedin-in"></i></a>
<a href="#"><i class="fab fa-behance"></i></a>
</div>
</body>
</html>
body
{
margin: 0;
padding: 0;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background-color: #2f3640;
}
.sm a
{
display: inline-block;
font-size: 40px;
color: #fa8231;
width: 100px;
height: 100px;
line-height: 100px;
text-align: center;
margin: 0 16px;
transition: .4s linear;
position: relative;
box-shadow:0 0 0 1px rgba(0,0,0,0);
}
.sm a::before, .sm a::after
{
content: '';
position: absolute;
box-sizing: border-box;
width: 100%;
height: 100%;
/* border: 4px solid; */
left: 0;
top: 0;
transition: .4s linear;
box-shadow:0 0 0 1px rgba(0,0,0,0);
}
.sm a:hover
{
transform: scale(.8);
}
.sm a:hover::before
{
border-left: 4px solid;
border-right: 4px solid;
transform: skewX(20deg);
}
.sm a:hover::after
{
border-top: 4px solid;
border-bottom: 4px solid;
transform: skewY(-20deg);
}
// https://github.com/atulcodex
// https://www.linkedin.com/in/atul-prajapati-05420916a/
// https://www.instagram.com/atulcodex/
// https://www.facebook.com/atul.prajapati.5492216
// https://twitter.com/atuljustano
// https://in.pinterest.com/atulcodex/
// https://www.youtube.com/channel/UCf-KfxuY8PZBSD_8RW2nYsw?view_as=subscriber
// https://atulcodex.tumblr.com/
// https://www.buymeacoffee.com/atulcodex
// https://www.codepen.io/atulcodex
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.