Social icon hover animation

Developer
Size
2,807 Kb
Views
6,072

How do I make an social icon hover animation?

What is a social icon hover animation? How do you make a social icon hover animation? This script and codes were developed by Brandon Ward on 24 November 2022, Thursday.

Social icon hover animation Previews

Social icon hover animation - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Social icon hover animation</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="social-container"> <ul class="social-icons"> <li><a href="#"><i class="fa fa-instagram"></i></a></li> <li><a href="#"><i class="fa fa-twitter"></i></a></li> <li><a href="#"><i class="fa fa-linkedin"></i></a></li> <li><a href="#"><i class="fa fa-codepen"></i></a></li> </ul> <ul class="social-icons"> <li><a href="#" class="social-square"><i class="fa fa-facebook"></i></a></li> <li><a href="#" class="social-square"><i class="fa fa-dribbble"></i></a></li> <li><a href="#" class="social-square"><i class="fa fa-github"></i></a></li> <li><a href="#" class="social-square"><i class="fa fa-stack-overflow"></i></a></li> </ul>
</div>
</body>
</html>

Social icon hover animation - Script Codes CSS Codes

@import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.css);
body { background-color: rgba(255, 0, 60, 0.05);
}
.social-container { width: 400px; margin: 40vh auto; text-align: center;
}
.social-icons { padding: 0; list-style: none; margin: 1em;
}
.social-icons li { display: inline-block; margin: 0.15em; position: relative; font-size: 1.2em;
}
.social-icons i { color: #fff; position: absolute; top: 21px; left: 21px; transition: all 265ms ease-out;
}
.social-icons a { display: inline-block;
}
.social-icons a:before { transform: scale(1); -ms-transform: scale(1); -webkit-transform: scale(1); content: " "; width: 60px; height: 60px; border-radius: 100%; display: block; background: linear-gradient(45deg, #ff003c, #c648c8); transition: all 265ms ease-out;
}
.social-icons a:hover:before { transform: scale(0); transition: all 265ms ease-in;
}
.social-icons a:hover i { transform: scale(2.2); -ms-transform: scale(2.2); -webkit-transform: scale(2.2); color: #ff003c; background: -webkit-linear-gradient(45deg, #ff003c, #c648c8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; transition: all 265ms ease-in;
}
.social-icons a.social-square:before { background: linear-gradient(45deg, #7b00e0, #ae31d9); border-radius: 10%;
}
.social-icons a.social-square:hover:before { transform: rotate(-180deg); -ms-transform: rotate(-180deg); -webkit-transform: scale(-180deg); border-radius: 100%;
}
.social-icons a.social-square:hover i { transform: scale(1.6); -ms-transform: scale(1.6); -webkit-transform: scale(1.6); color: #fff; transform: scale(1.6); -webkit-text-fill-color: #fff;
}
Social icon hover animation - Script Codes
Social icon hover animation - Script Codes
Home Page Home
Developer Brandon Ward
Username brandondward
Uploaded November 24, 2022
Rating 4.5
Size 2,807 Kb
Views 6,072
Do you need developer help for Social icon hover animation?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Brandon Ward (brandondward) Script Codes
Create amazing Facebook ads with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!