Social icon hover animation
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 - 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;
}
Developer | Brandon Ward |
Username | brandondward |
Uploaded | November 24, 2022 |
Rating | 4.5 |
Size | 2,807 Kb |
Views | 6,072 |
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!
Name | Size |
Floating background shapes animation | 5,349 Kb |
Flexbox template | 1,989 Kb |
Card stack tutorial animation | 3,815 Kb |
A Pen by Brandon Ward | 2,576 Kb |
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!
Name | Username | Size |
Elephants Full screen site | Orrinward | 3,981 Kb |
A Pen by Jay | Jaycode | 3,784 Kb |
WRENCH - STAFF | Lolita-adams | 1,608 Kb |
Scroll to top button | DominicFrancois | 3,743 Kb |
Sort the Knowlege | Eprouver | 3,915 Kb |
Under construction | GhostRider | 1,642 Kb |
Animated rainbow wave on canvas | Icodeforlove | 2,777 Kb |
A Pen by James Podles | Jpod | 2,656 Kb |
Scoreboard.js basic usage | Tbleckert | 1,733 Kb |
Elon Musk - Tribute Page - FreeCodeCamp | Yunnimun | 8,615 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!