Glowing Icons

Home / Web Code Snippet / Glowing Icons

Glowing Icons


https://youtube.com/shorts/Lgfe0ConOtY?si=vE6B2ZP-8yI1n-J4

HTML CODE:-

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <title></title>
</head>
<body>
<ul>
  <li>
    <a href="#">
     <i class="fa-brands fa-youtube"></i>
    </a>
  </li>
  <li>
    <a href="#">
      <i class="fa-brands fa-twitter"></i>
    </a>
    </li>
  <li>
    <a href="#">
      <i class="fa-solid fa-truck-fast"></i>
    </a>
  </li>
  <li>
    <a href="#">
      <i class="fa-solid fa-cloud"></i>
    </a>
  </li>
</ul>
</body>
</html>

CSS CODE:-

body {
  margin: 0;
  padding: 0;
  background: black;
}
ul {
  margin: 0;
  padding: 0;
  display: flex;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
ul li {
  list-style: none;
  margin: 0 15px;
}
ul li a {
  position: relative;
  display: block;
  width: 70px;
  height: 70px;
  text-align: center;
  line-height: 73px;
  background: #333;
  border-radius: 50%;
  font-size: 32px;
  color: #666;
  transition: .5s;
}
ul li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: cyan;
  transition: .5s;
  transform: scale(0.9);
  z-index: -1;
}
ul li a:hover::before {
  transform: scale(1.1);
  box-shadow: 0 0 15px cyan;
}
ul li a:hover {
  color: cyan;
  box-shadow: 0 0 5px cyan;
  text-shadow: 0 0 5px cyan;
}