amazing hover icon css || social media icons css || html css hover
Hi, thanks for watching our video about amazing hover icon css || social media icons css || html css hover!
In this video we’ll walk you through:
*Moving hover effects icons
*Social media effects
*Icon color
ABOUT OUR CHANNEL
Our channel is about coding. We cover lots of cool stuff such as "HTML", "CSS", "BOOTSTRAP5" and "JAVASCRIPT".. Check out our channel here:
https./youtube.com /@skillbeginner
Don’t forget to subscribe!
html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,
initial-scale=1.0">
<!-- kit font-awesome js -->
<script src="https://kit.fontawesome.com/f6816dd194.js"
crossorigin="anonymous"></script>
<link rel="stylesheet" href="style.css">
<title>Amazing hover icon effects</title>
</head>
<body>
<div class="main">
<div class="icons">
<a href="#"><i class="fab fa-instagram fa-2x"></i></a>
</div>
<div class="icons">
<a href="#"><i class="fab fa-facebook fa-2x"></i></a>
</div>
<div class="icons">
<a href="#"><i class="fab fa-twitter fa-2x"></i></a>
</div>
<div class="icons">
<a href="#"><i class="fab fa-snapchat fa-2x"></i></a>
</div>
<div class="icons">
<a href="#"><i class="fab fa-tiktok fa-2x"></i></a>
</div>
</div>
</body>
</html>
CSS
*
{
margin: 0;
padding: 0;
}
body
{
background: #333;
}
.main
{
width: 100%;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.icons
{
width: 50px;
height: 50px;
margin: 0 10px;
display: flex;
justify-content: center;
align-items: center;
position: relative;
border-radius: 50%;
overflow: hidden;
}
.icons a
{
color: #ffff;
}
.icons::before
{
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to left,#36705d,#36705d);
z-index: -1;
border-radius: 50%;
transform: translate(100%,100%);
transition: all .4s;
}
.icons:hover::before
{
transform: translate(0);
animation: anim .4s linear;
}
@keyframes anim{
0%,100%{
width: 100%;
height: 100%;
}
50%{
width: 50%;
height: 50%;
}
}
Just copy it on your project
And Don't forget to Subscribe To my youtube channel link
Subscribe me
Tags:
icon
