Social media buttons with amazing animation on hover using html & css ... I also like this Glowing Effect on Social Media Icons ... This Glowing Effect is also cool Glowing Social Media Icons Widget using only HTML & CSS.
HTML
Before we start writing code first, we need to create a primary structure of the HTML document, so that the browser can understand and start working. The basic HTML structure looks like the following.
After writing the primary structure of the HTML document, you will also write the tags and content you need. After that, you can see the output in your browser. We know that HTML Sudu Mae is used for exposing content in a basic format. To complete our content we need to use CSS, which is an HTML insert and it creates an engaging user interface.
0
<!DOCTYPE html>
<html>
<head>
<title>Social Media icon</title>
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<div class="fa">
<a href="#"><i class="fa fa-facebook"></i></a>
<a href="#"><i class="fa fa-twitter"></i></a>
<a href="#"><i class="fa fa-linkedin"></i></a>
<a href="#"><i class="fa fa-youtube"></i></a>
<a href="#"><i class="fa fa-instagram"></i></a>
</div
</body>
</html>
CSS
Now, we have time to improve the HTML content, for that, we need to add CSS to the HTML file. CSS can be added to HTML documents in a total of three ways, here we are using outside CSS design using CSS will arrive here after typing and see the output in your browser.
height: 100vh;
align-items: center;
background: #333;
display: flex;
justify-content: center;
}
i.fa{
padding: 20px;
width: 50px;
font-size: 40px;
text-align: center;
text-decoration: none;
margin: 5px 10px;
border-radius: 15px;
color: #fff;
}
i.fa:hover{
opacity: 0.7;
}
.fa-facebook{
background: #3b5998;
}
.fa-twitter{
background: #55acee;
}
.fa-linkedin{
background: #007bb5;
}
.fa-youtube{
background: #660000;
}
.fa-instagram{
background: #125688;
}
No comments: