Glowing Social Media Icons using HTML CSS

Glowing Social Media Icons using HTML CSS

This tutorial will help you to know how to create Glowing Social Media Icons using HTML and CSS. Earlier I shared tutorials on many more types of CSS Glowing Social Media Buttons.

Here I have used colorful animations. glow buttons CSS makes your simple buttons more attractive. I only used HTML and CSS here.

Social media icons we use in different places. However, if it is animated, it attracts a lot of users' attention. Here I have used different colors and added a hover effect.

Glowing Social Media Icons CSS

Below I have given a demo that will help you to know how it works. Here you will find the required source code.

See the Pen Untitled by Ground Tutorial (@groundtutorial) on CodePen.


As you saw above. I have used the four icons at the top of that page. Those icons have been circled around. Color shadow has been added to the border.

When you click or hover over the button, the width of the button will increase and it will change from round to rectangular.

This will change the background color of the button and the color of the icon. It's easy to build if you know basic HTML and CSS. At the end of the article, there is a button to download the source code.

Step 1: Add Social Media Icons with HTML

I have added all the icons using the following HTML codes. Here I have used 4 icons to create four social buttons.


<div class="container">

  <div class="btn" role="button">
    <i class="fa fa-facebook"></i>
  </div>

  <div class="btn" role="button">
    <i class="fa fa-instagram"></i>
  </div>

  <div class="btn" role="button">
    <i class="fa fa-youtube"></i>
  </div>

  <div class="btn" role="button">
    <i class="fa fa-twitter"></i>
  </div>

</div>


Step 2: Design the Glowing Social button

Now the buttons have been designed by CSS. Each button has a different color added to it


/*Basic design of webpage*/
body {
background-color: black;
font-family: "Poppins", sans-serif;
}

.container {
display: flex;
justify-content: center;
flex-wrap: wrap;
align-items: center;
height: 97vh;
}

/*The button is designed by the code below*/
.container .btn {
margin: 20px;
width: 90px;
height: 90px;
border-radius: 50%;
text-align: center;
-webkit-user-select: none;
   -moz-user-select: none;
    -ms-user-select: none;
        user-select: none;
cursor: pointer;
line-height: 2.5;
font-size: 2.2rem;
font-weight: 500;
transition: 0.2s ease-in-out;
}

/*Added hover and after effects of the button*/
.container .btn:hover {
border: none;
width: 190px;
border-radius: 50px;
}

.container .btn:hover:after {
display: block;
content: "Add";
font-size: 1.5rem;
}

/*1st button's background color and hover color*/
.container .btn:nth-child(1) {
border: 1px solid white;
box-shadow: 0px 0px 20px 0px rgba(255, 255, 255, 0.5);
}
.container .btn:nth-child(1) .fa {
color: white;
}
.container .btn:nth-child(1):hover {
border: none;
box-shadow: none;
background: linear-gradient(130deg, #abbaab, #ffffff);
color: white;
}

/*2nd button's background color and hover color*/
.container .btn:nth-child(2) {
border: 1px solid yellow;
box-shadow: 0px 0px 20px 0px rgba(253, 235, 113, 0.5);
}
.container .btn:nth-child(2) .fa {
color: yellow;
}
.container .btn:nth-child(2):hover {
border: none;
background: linear-gradient(130deg, #FDEB71, #F8D800);
color: white;
box-shadow: none;
}
.container .btn:nth-child(2):hover .fa {
color: white;
}


/*3rd button's background color and hover color*/
.container .btn:nth-child(3) {
border: 1px solid red;
box-shadow: 0px 0px 20px 0px rgba(254, 182, 146, 0.5);
}
.container .btn:nth-child(3) .fa {
color: red;
}
.container .btn:nth-child(3):hover {
border: none;
background: linear-gradient(130deg, #FEB692, #EA5455);
color: white;
box-shadow: none;
}
.container .btn:nth-child(3):hover .fa {
color: white;
}


/*4rd button's background color and hover color*/
.container .btn:nth-child(4) {
border: 1px solid blue;
box-shadow: 0px 0px 20px 0px rgba(171, 220, 255, 0.5);
}
.container .btn:nth-child(4) .fa {
color: blue;
}
.container .btn:nth-child(4):hover {
border: none;
background: linear-gradient(130deg, #ABDCFF, #0396FF);
color: white;
box-shadow: none;
}
.container .btn:nth-child(4):hover .fa {
color: white;
}

Hopefully, you have been able to create these Glowing Social Icons using the above codes. If there is any problem then you can definitely let me know by commenting. 

The source code of this Social Media Icons Glowing Effect can be downloaded with the help of the button below.






Comments

Popular posts from this blog

Simple Day Night Toggle Button Using HTML and CSS

Splash Image Mask Using HTML and CSS (Free Code)

Simple RGB Color Generator Using JavaScript & CSS