Glowing Social Media Icons using only HTML & CSS

Glowing Social Media Icons Widget using only HTML and CSS

Hello readers, Today in this blog you’ll learn how to create Social Media Icons with CSS Glowing Effect. Previously I have shared Social Media Icons with Hover Animation using only HTML and CSS, now it’s time to create a Social Media Button with Glowing Effect.

The Social Media Widget is a simple widget that allows users to insert their social networks and connections profile URLs and other subscription options to show an icon to that social media site and more that open up in a separate browser window.

At first, these icons are in the initial stage where there is no glow effect. But when you hover on it, the specific hovered icon starts to glow. In the image, there is 2 Social Media Widget List with the same icons but which different glow colors. In the first widget, there are gold color glowing effects and in the second widget, there are default logo color glowing effects.

If you’re feeling difficulty understanding what I am saying. You can watch a full video tutorial on this program (Glowing Social Media Icons Widget).

Video Tutorial of CSS Glowing Social Media Icons on Hover

I hope you like these glowing effects and understanding the basic codes behind the creating of this Glowing Social Media Icons Widget. As you have seen in the video this is an effect that is based on only HTML & CSS. And, I believe a beginner who has a basic knowledge of HTML & CSS also can create this type of glow effect.

If you like this program (Glowing Social Media Icons Widget) and want to get source codes. You can easily get the source codes of this program. To get the source codes you just need to scroll down.

Glowing Social Media Icons using HTML & CSS [Source Codes]

To create this program (Glowing Social Media Icons Widget). First, you need to create two Files one HTML File and another one is CSS File. After creating these files just paste the following codes in your file. First, create an HTML file with the name of index.html and paste the given codes in your HTML file. Remember, you’ve to create a file with .html extension.

<!DOCTYPE html>
<!-- Created By CodingNepal -->
<html lang="en" dir="ltr">
      <meta charset="utf-8">
      <title>Glowing Social Icons</title>
      <link rel="stylesheet" href="style.css">
      <link rel="stylesheet" href=""/>
         <li><i class="fab fa-facebook-f"></i></li>
         <li><i class="fab fa-twitter"></i></li>
         <li><i class="fab fa-instagram"></i></li>
         <li><i class="fab fa-linkedin-in"></i></li>
         <li><i class="fab fa-youtube"></i></li>

Second, create a CSS file with the name of style.css and paste the given codes in your CSS file. Remember, you’ve to create a file with .css extension.

  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  height: 100vh;
  text-align: center;
  align-items: center;
  justify-content: center;
  background: #262626;
  display: flex;
ul li{
  position: relative;
  display: block;
  color: #666;
  font-size: 30px;
  height: 60px;
  width: 60px;
  background: #171515;
  line-height: 60px;
  border-radius: 50%;
  margin: 0 15px;
  cursor: pointer;
  transition: .5s;
ul li:before{
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  height: inherit;
  width: inherit;
  /* background: #d35400; */
  border-radius: 50%;
  transform: scale(.9);
  z-index: -1;
  transition: .5s;
ul li:nth-child(1):before{
  background: #4267B2;
ul li:nth-child(2):before{
  background: #1DA1F2;
ul li:nth-child(3):before{
  background: #E1306C;
ul li:nth-child(4):before{
  background: #2867B2;
ul li:nth-child(5):before{
  background: #ff0000;
ul li:hover:before{
  filter: blur(3px);
  transform: scale(1.2);
  /* box-shadow: 0 0 15px #d35400; */
ul li:nth-child(1):hover:before{
  box-shadow: 0 0 15px #4267B2;
ul li:nth-child(2):hover:before{
  box-shadow: 0 0 15px #1DA1F2;
ul li:nth-child(3):hover:before{
  box-shadow: 0 0 15px #E1306C;
ul li:nth-child(4):hover:before{
  box-shadow: 0 0 15px #2867B2;
ul li:nth-child(5):hover:before{
  box-shadow: 0 0 15px #ff0000;
ul li:nth-child(1):hover{
  color: #456cba;
  box-shadow: 0 0 15px #4267B2;
  text-shadow: 0 0 15px #4267B2;
ul li:nth-child(2):hover{
  color: #26a4f2;
  box-shadow: 0 0 15px #1DA1F2;
  text-shadow: 0 0 15px #1DA1F2;
ul li:nth-child(3):hover{
  color: #e23670;
  box-shadow: 0 0 15px #E1306C;
  text-shadow: 0 0 15px #E1306C;
ul li:nth-child(4):hover{
  color: #2a6cbb;
  box-shadow: 0 0 15px #2867B2;
  text-shadow: 0 0 15px #2867B2;
ul li:nth-child(5):hover{
  color: #ff1a1a;
  box-shadow: 0 0 15px #ff0000;
  text-shadow: 0 0 15px #ff0000;
/* ul li:hover{
  color: #ffa502;
  box-shadow: 0 0 15px #d35400;
  text-shadow: 0 0 15px #d35400;
} */

That’s all, now you’ve successfully created a Glowing Social Media Icons Widget using only HTML & CSS. If your code does not work or you’ve faced any error/problem then please comment down or contact us from the contact page.

Previous articleColorful Glowing Effect on Hover using HTML & CSS
Next articleCopy Text to Clipboard Button in HTML CSS & Javascript


  1. Wow! This is really beautiful. Also I need to say: your content is very helpful and high quality. Thanks for share it with us. May I use this code in my first website? I’ll give the right credits on it 🙂

  2. The widget looks great, being a newbie at CSS I’m having trouble applying things to what I have in my website, some more detailed comments in your css would be very helpful, I have setup my html with links like this but I’m getting confued with what I already have:

  3. The social icon widget looks great, and the rest of the site looks fine after it loads. Thank you!! I’m exploring the CSS to make sure I understand it.

    QUESTION: The colors of all the icons change to magenta just after they load, but the hover colors are perfect. I have searched, but all the colors look correct.

  4. Hi CodingNepal, i have a problem. I think something is wrong with my z-index. The effect doesnt show up when hovering over the icons. It does show up when I put the z-index of the ul li elements to a positive number, but then the gloweffect color is between the background of the icons and the icons.

  5. first of all great work much obliged , second , i cant quiet fit it where the footer usualy is. so i want down as a footer, any one knows the way. i know sounds silly but i cant quiet figure it out.

  6. Great teaching thank you so much but i want to know how to fix when i put the link the font color turns to purple. I dont have Instagram I have discord pls tell me there
    my discord: Umer_AR#7041

  7. when you add a link address, the hover on the icon font only works if your on the icon font, without link address the hover works if you hover over the white background

  8. hi, thank you for your valuable lecture and code!
    i want to use this source code for my website where i want to put my social-icon to right of my header( my name) follow up with nav bars so how can i use this? please explain in detail or show me a custom code….im a kind of newbie to the field


  9. I put this and my whole site links got messy…i'm not expert in coding can u help set this style only for this icons without effecting my other style on the site.

    Thank you


Please enter your comment!
Please enter your name here