CSS Gradient Icons.Today in this blog, we gonna learn about CSS Gradient Icons Effect for Beginners.
CSS Gradient Icons
Hi Friends!
Today in this blog, we gonna learn about CSS Gradient Icons Effect for Beginners. CSS Social Media Icons are one of the best attractive and clickable parts of the website. I already uploaded some Social Media Icons effects if you're a beginner let's go and learn it.
This Gradient Icons Effect is an attractive part of websites. In the previous blog, we will learn about CSS Gradient Card Effect For Beginners if you're a beginner I will recommend learning that button effect first. If you learn that and this blog will help you to learn about Gradient Icons Effect. In this blog, I will give my video tutorial and source codes to download. if you have any doubts ask me in the comment section.
HTML file
[
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>css gradient icons</title>
<link rel="stylesheet" type="text/css" href="index.css">
</head>
<body>
<div class="img1">
<img src="facebook.png">
</div>
<div class="img2">
<img src="instagram.png">
</div>
<div class="img3">
<img src="twitter.png">
</div>
</body>
</html>
]
You can copy this HTML file. and paste it into your HTML file. Now you will learn it clearly. and don't forget to save the file with an extension. HTML. This extension is more important for creating a website page.
CSS file
[
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
display: flex;
justify-content: space-around;
align-items: center;
height: 100vh;
width: 100%;
background-color: #262626FF;
}
div{
display: flex;
justify-content: center;
align-items: center;
position: relative;
height: 100px;
width: 100px;
border-radius: 50%;
box-shadow: 1px 1px 60px black;
background: rgba(255, 255, 255, 0.5);
overflow: hidden;
}
img{
height: 50px;
width: 50px;
}
div:hover{
background-color: transparent;
cursor: pointer;
}
div::before{
content: '';
display: block;
position: absolute;
height: 100px;
width: 100px;
bottom: 100%;
left: 100%;
border-radius: 50%;
z-index: -1;
}
.img1::before{
background: linear-gradient(45deg,royalblue,dodgerblue);
}
.img2::before{
background: linear-gradient(45deg,orange,yellow);
}
.img3::before{
background: linear-gradient(45deg,dodgerblue,deepskyblue);
}
div:hover::before{
animation: anime 0.5s linear forwards;
}
@keyframes anime{
100%{
bottom: 0;
left: 0;
}
}
]
Secondly, you can copy this CSS file. and paste it into your CSS file. and remember the file extension called. CSS. This will help you to design your webpage. If you want more clarity on this topic you can watch my video tutorial and If you have any doubts ask me in the comment section.
Video Tutorial
Watch this video fully and learn the all Social Media Icons effects to develop your skills. repeat the code for your practice this will help you to learn this Gradient Icons Effect better and This video is also helpful to learn faster. colourful Gradient Icons Effects are important to learn CSS effects. I hope this tutorial will be helpful to learn Social Media Icons effect for beginners. I will give you Source Code and you can download it.
COMMENTS