adc

clicks

How to Add Social Share Icons with Unique Hover Effects

 How to Add Social Share Icons with Unique Hover Effects

The social media share buttons are a very important section of your website. They provide you and your users to directly share your content over social media, growing your house in seconds with just a few clicks. While it is a little story to be implemented, you can be productive with it and make the social share buttons interactive in a way that combines a different experience for your visitors. One of the ways of doing it is simply using the CSS hover feature. In this tutorial, we'll show you how to do that.
You can use any kind of picture file you want for your icons such as PNG or SVG. In this tutorial, we wanted to stay healthy easy and used an icon font, FontAwesome. This method keeps time as you don't have to individually download icon images and set their sizes individually. It also cuts down the lines of code on your HTML or CSS file. With FontAwesome, you can simply add the CDN below to add icons to your website. We're also working Bootstrap to organize our network layout. Please insert the outside links below on your HTML file to get excited:

 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.

 <!DOCTYPE html>
<html>
<head>
    <title>shine effect </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="container">
        <a href="#"><i class="fa fa-facebook-f"></i></a>
        <a href="#"><i class="fa fa-youtube"></i></a>
        <a href="#"><i class="fa fa-twitter"></i></a>
        <a href="#"><i class="fa fa-instagram"></i></a>
        <a href="#"><i class="fa fa-linkedin"></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.

 body{
margin: 0;
padding: 0:

align-items: center;
justify-content: center;
min-height: 100vh;
display: flex;
background:linear-gradient(45deg, #c52551 50%, #de8bab 50%);

}

.container{
    display: flex;
    text-align: center;
    width: 500px;
    justify-content: space-around;
}

.container a{
    font-size: 35px;
    height: 70px;
    width: 70px;
    background:linear-gradient(45deg,rgba(255,255,255,0.5) 50%, rgba(0,0,0,0.5)50%);
    border-radius: 50%;
    box-shadow: 1px solid #420420;
    color: black;
    line-height: 70px;
    text-align: center;
    transition: .2s;
    position: relative;
    overflow: hidden;
}

.container a:hover{
    font-size: 60px;
}
.container a:after{
    content: "";
    position: absolute;
    top: 0;
    left: -100;
    height: 100%;
    width: 100%;
    background:linear-gradient(90deg, transparent,black,transparent);

}

.container a:hover:after{
    left: 100%;
}

 

 

 

Youtube Videos 

 

youtube channel GO

How to Add Social Share Icons with Unique Hover Effects How to Add Social Share Icons with Unique Hover Effects Reviewed by easycoding on August 10, 2020 Rating: 5

No comments:

Powered by Blogger.