<!-- ------------------ Created By InCoder ------------------ -->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Social Media Icon Hover Effect Using HTML and CSS - InCoder</title>
  <link rel="stylesheet" href="main.css">
  <link href='https://unpkg.com/boxicons@2.1.1/css/boxicons.min.css' rel='stylesheet'>
</head>

<body>
  <div class="inWrapper">
    <a href="#" class="inBtn"><i class='bx bxl-facebook-circle'></i></a>
    <a href="#" class="inBtn"><i class='bx bxl-instagram-alt'></i></a>
    <a href="#" class="inBtn"><i class='bx bxl-whatsapp'></i></a>
    <a href="#" class="inBtn"><i class='bx bxl-skype'></i></a>
    <a href="#" class="inBtn"><i class='bx bxl-reddit'></i></a>
    <a href="#" class="inBtn"><i class='bx bxl-blogger'></i></a>
  </div>
</body>

</html>
/* ------------------ Created By InCoder ------------------ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  height: 100vh;
  align-items: center;
  justify-content: center;
  background-color: rgb(248, 250, 252, 90%);
}

.inWrapper .inBtn {
  width: 4rem;
  height: 4rem;
  color: #fff;
  font-size: 2.4rem;
  margin-right: 0.6rem;
  margin-bottom: 0.6rem;
  align-items: center;
  position: relative;
  display: inline-flex;
  text-decoration: none;
  justify-content: center;
}

.inWrapper .inBtn::before {
  content: "";
  top: 0;
  left: 0;
  height: 4rem;
  width: 4rem;
  z-index: -1;
  position: absolute;
  border-radius: 12px;
  transition: all 0.3s ease-in-out;
  background: linear-gradient(32deg, #7503e0d9, #e703ad);
}

.inWrapper .inBtn:hover::before {
  border-radius: 50%;
  transform: rotate(360deg);
}
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.