Close Menu

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    How to make Animated Gaming Website GSAP in HTML CSS & JS

    20 December 2025

    How to make Awesome Cool Loading Animation in HTML CSS & JS

    15 December 2025

    How to make Christmas Tree Animation using HTML and CSS

    12 December 2025
    Facebook X (Twitter) Instagram YouTube Telegram Threads
    Coding StellaCoding Stella
    • Home
    • Blog
    • HTML & CSS
      • Login Form
    • JavaScript
    • Hire us!
    Coding StellaCoding Stella
    Home - HTML & CSS - How to make Social media icons hover effect using HTML & CSS
    HTML & CSS

    How to make Social media icons hover effect using HTML & CSS

    Coding StellaBy Coding Stella14 May 2025No Comments3 Mins Read
    Share Facebook Twitter Pinterest LinkedIn Tumblr Reddit Email WhatsApp Copy Link

    Let’s create a Social Media Icons Hover Effect using HTML and CSS. This project will display a set of social media icons that animate with a smooth and eye-catching hover effect, making your website feel more modern and interactive.

    We’ll use:

    • HTML to add the social media icons.
    • CSS to style the icons and apply unique hover animations like color changes, scaling, glow effects, or bounce.

    This is a great way to enhance your website’s footer or contact section while practicing your front-end skills. Let’s get started and make your social links look awesome! 🌐✨

    HTML :

    This HTML code creates a simple webpage that displays a list of social media icons (Facebook, Twitter, LinkedIn, YouTube) using Font Awesome; when styled with style.css, these icons can have hover effects, and each icon is clickable (though all links currently point to #, meaning they don’t go anywhere).

    <!DOCTYPE html>
    <html lang="en" >
    <head>
      <meta charset="UTF-8">
      <title>Social Media Icons hover effect | @coding.stella</title>
      <link rel="stylesheet" href="./style.css">
      <script src="https://kit.fontawesome.com/22c625fc9a.js" crossorigin="anonymous"></script>
    </head>
    
    <body>
    
    <ul>
      <li>
        <a href="#"> <i class="fa-brands fa-facebook-f icon"></i></a>
      </li>
      <li>
        <a href="#"><i class="fa-brands fa-x-twitter icon"></i></a>
      </li>
      <li>
        <a href="#"><i class="fa-brands fa-linkedin-in icon"></i></a>
      </li>
      <li>
        <a href="#"><i class="fa-brands fa-youtube icon"></i></a>
      </li>
    </ul>
      
    </body>
    </html>

    CSS :

    This CSS styles a webpage with a dark background and center-aligned circular social media icons. The icons sit inside white circles and change color when hovered. Each icon spins and its background smoothly slides in with the brand color (Facebook blue, Twitter black, LinkedIn blue, YouTube red). The :before pseudo-element creates the sliding background effect, while transform, transition, and z-index manage the animation and layering.

    body {
      margin: 0;
      padding:0;
      background: #252432;
    }
    
    ul {
      display: flex;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
    
    ul li {
      list-style: none;
    }
    
    ul li a {
      width: 80px;
      height: 80px;
      background-color: #fff;
      text-align: center;
      line-height: 80px;
      font-size: 35px;
      margin: 0 10px;
      display: block;
      border-radius: 50%;
      position: relative;
      overflow: hidden;
      border: 3px solid #fff;
      z-index: 1;
    }
    
    ul li a .icon {
      position: relative;
      color: #262626;
      transition: .5s;
      z-index: 3;
    }
    
    ul li a:hover .icon {
      color: #fff;
      transform: rotateY(360deg);
    }
    
    ul li a:before {
      content: "";
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      height: 100%;
      background: #f00;
      transition: .5s;
      z-index: 2;
    }
    
    ul li a:hover:before {
      top: 0;
    }
    
    ul li:nth-child(1) a:before{
      background: #3b5999;
    }
    
    ul li:nth-child(2) a:before{
      background: #161616;
    }
    
    ul li:nth-child(3) a:before {
      background: #0077b5;
    }
    
    ul li:nth-child(4) a:before {
      background: #ff1414;
    }

    In conclusion, creating Social Media Icons with Hover Effects using HTML and CSS is a fun and easy way to improve your website’s look and feel. With just a few lines of code, you can make your social icons more engaging and stylish. Keep coding and adding cool effects to your UI! 💻🎨

    If your project has problems, don’t worry. Just click to download the source code and face your coding challenges with excitement. Have fun coding!

    Animation hover social media
    Share. Copy Link Twitter Facebook LinkedIn Email WhatsApp
    Previous ArticleHow to make Awesome Radar Animation using HTML & CSS
    Next Article How to create Animated No Chill Login form using HTML CSS and JS
    Coding Stella
    • Website

    Related Posts

    JavaScript

    How to make Animated Gaming Website GSAP in HTML CSS & JS

    20 December 2025
    JavaScript

    How to make Awesome Cool Loading Animation in HTML CSS & JS

    15 December 2025
    HTML & CSS

    How to make Christmas Tree Animation using HTML and CSS

    12 December 2025
    Add A Comment
    Leave A Reply Cancel Reply

    Trending Post

    Master Frontend in 100 Days Ebook

    2 March 202432K Views

    How to make Modern Login Form using HTML & CSS | Glassmorphism

    11 January 202430K Views

    How to make I love you Animation in HTML CSS & JavaScript

    14 February 202423K Views

    How to make Valentine’s Day Card using HTML & CSS

    13 February 202415K Views
    Follow Us
    • Instagram
    • Facebook
    • YouTube
    • Twitter
    ads
    Featured Post

    How to make Sidebar Menu using HTML CSS & JavaScript

    14 January 2024

    50 Projects in 50 Days – HTML/CSS and JavaScript

    23 February 2025

    Mastering Web Development: Your Ultimate Roadmap to Success

    31 January 2024

    How to make Hand Scanning Animation using HTML & CSS

    12 January 2024
    Latest Post

    How to make Animated Gaming Website GSAP in HTML CSS & JS

    20 December 2025

    How to make Awesome Cool Loading Animation in HTML CSS & JS

    15 December 2025

    How to make Christmas Tree Animation using HTML and CSS

    12 December 2025

    How to make Scooter Bike Animation Scroll in HTML CSS & JS

    6 December 2025
    Facebook X (Twitter) Instagram YouTube
    • About Us
    • Privacy Policy
    • Return and Refund Policy
    • Terms and Conditions
    • Contact Us
    • Buy me a coffee
    © 2025 Coding Stella. Made with 💙 by @coding.stella

    Type above and press Enter to search. Press Esc to cancel.

    Ad Blocker Enabled!
    Ad Blocker Enabled!
    Looks like you're using an ad blocker. We rely on advertising to help fund our site.
    Okay! I understood