Skip to main content

Social Media Icon Hover Effects with HTML and CSS

#socialmedia #hover #effect #hovereffect #html #css #foryou #world #happy # website #webdesign #webdeveloper #how to #howto #trending #viral #srilanka #youtube #tiktok #blog  #howtocreate #Javascript #image #imageuploader 

In this tutorial, we'll take your web design skills to the next level by exploring how to create stunning social media icon hover effects using HTML and CSS. Whether you're a seasoned developer or just starting out, these effects will add a touch of interactivity and professionalism to your website. 

1.Create a New Folder

2.Open the Folder in Vs Code 

3.Create index.html and style.css Files 

4.Begin Coding  
 

index.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://kit.fontawesome.com/562fae65df.js" crossorigin="anonymous"></script>
    <title>Social Media Icon With Hover Effect</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="social-menu">
        <ul>
            <li><a href="#"><i class="fa-brands fa-facebook"></i></a></li>
            <li><a href="#"><i class="fa-brands fa-youtube"></i></a></li>
            <li><a href="#"><i class="fa-brands fa-linkedin"></i></a></li>
            <li><a href="#"><i class="fa-brands fa-spotify"></i></a></li>
        </ul>
    </div>
</body>
</html>

style.css
   
body{
    background-color: #fff;
}
.social-menu ul{
   position: absolute;
    top: 50%;
    left: 50%;
    padding: 0;
    margin: 0;
    transform: translate(-50%,-50%);
    display: flex;
}
.social-menu ul li{
    list-style: none;
    margin: 0 15px;

}
.social-menu ul li .fa-brands{
    font-size: 30px;
    line-height: 60px;
    transition: 0.5s;
    color: #000;
}
.social-menu ul li .fa-brands:hover{
    color: blue;
}
.social-menu ul li a{
    position: relative;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: block;
    transition: 0.5s;
    text-align: center;
    box-shadow: 0 5px 4px rgba(0,0,0,0.5);
}
.social-menu ul li a:hover{
    transform: translate(0,-10px);

}
.social-menu ul li:nth-child(1) a :hover{
    color:#4267B2 ;
}
.social-menu ul li:nth-child(2) a :hover{
    color:#C4302b ;
}
.social-menu ul li:nth-child(3) a :hover{
    color:#0A66C2 ;
}
.social-menu ul li:nth-child(4) a :hover{
    color:#1db954 ;
}




Comments

Popular posts from this blog

How to Create Animate Mic Logo

    Embark on a design and coding adventure with our tutorial on creating and animating a microphone logo using HTML and CSS. In this concise yet comprehensive guide, we'll navigate logo design principles, emphasizing simplicity and visual balance. Seamlessly transitioning to animation, we'll bring the mic logo to life, making it dynamic and engaging. What sets this tutorial apart is its accessibility—no complex software, just the power of code.🎙️✨ #logoanimation #designtutorial #webdevelopment Don't forget to like, share, and subscribe for more web development tutorials and tips. If you have any questions or need further assistance, feel free to leave a comment, and we'll be happy to help you out. Happy coding! Like Us On Facebook:    / codingwithnexusofficial   Follow Us On Instagram:    / coding_with_nexus   Follow Us On TikTok:    / coding.with.nexus  index.html <! DOCTYPE html > < ...

How to Create a Portfolio Web Site

    Unlock the power of web development with our step-by-step guide on building a stunning portfolio website using HTML and CSS! 🚀 Join us on this hands-on journey as we demystify the coding process, This video helps you craft a professional portfolio. Whether you're a beginner or looking to enhance your web development skills, this tutorial is your gateway to creating a standout digital presence. Elevate your portfolio game and showcase your talents to the world! 💻✨ index.html   <! DOCTYPE html > < html lang = "en" > < head >     < meta charset = "UTF-8" >     < meta name = "viewport" content = "width=device-width, initial-scale=1.0" >     < link rel = "stylesheet" href = "style.css" >     < script src = "https://kit.fontawesome.com/b186863b7d.js"     crossorigin = "anonymous" ></ script >     < title > Portfolio Website </ title >...

Create Cool Hover Effects for Cards with HTML & CSS (2024)

  Learn how to create stylish hover effects for cards using HTML and CSS in this tutorial. Watch step-by-step as we implement eye-catching animations to make your website's cards stand out. Perfect for web developers looking to enhance user experience and add a touch of interactivity to their projects. Get ready to impress with cool hover effects for cards!  Stay tuned for more web development tutorials. index.html  <! DOCTYPE html > < html lang = "en" > < head >     < meta charset = "UTF-8" >     < meta name = "viewport" content = "width=device-width, initial-scale=1.0" >     < title > Card </ title >     < link rel = "stylesheet" href = "style.css" > </ head > < body >     < div class = "card" >         < img src = "Image/paris_eiffeltower_ssk500.jpeg" alt = "EiffelTower" >         < div class = "...