The Social Icons Widget represents small graphical buttons that are linked to your social media accounts, in any widget area of your theme. After adding links to the respective icons are automatically represented on your site, which gives your visitors to contact you through your preferred social media networks.
In this blog(Awesome Social Media Buttons with Hover Effect), there are four icons or buttons of different Social Media Networks like Facebook, Instagram, Twitter, and Youtube and when you hover on the particular button then the width of that button expands smoothly and visible the name of a particular hovered network.
The source code of this Awesome Social Media Buttons with Hover Effect using HTML & CSS is given below, and you can copy the source code of this program. You can use this code of Awesome Social Media Buttons with Hover Effect using HTML & CSS with your creativity and can take this to the next level.
Awesome Social Media Buttons with Hover Effect using HTML & CSS[Source Codes]
To make this website (Awesome Social Media Buttons with Hover Effect), you need to create two files: an HTML file & a CSS file. First, create an HTML file with the name of index.html and remember, you have to create a file with a .html extension.
@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
html,body{
background-color: #85FFBD;
background-image: linear-gradient(45deg, #85FFBD 0%, #FFFB7D 100%);
}
.wrapper{
display: flex;
align-items: center;
justify-content: center;
align-content: center;
margin-top:200px
}
.wrapper .button{
display: inline-block;
height: 60px;
width: 60px;
float: left;
margin: 0 5px;
overflow: hidden;
background: #121;
border-radius: 50px;
cursor: pointer;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
transition: all 0.3s ease-out;
color:#fff
}
.wrapper .button:hover{
width: 200px;
}
.wrapper .button .icon{
display: inline-block;
height: 60px;
width: 60px;
text-align: center;
border-radius: 50px;
box-sizing: border-box;
line-height: 60px;
transition: all 0.3s ease-out;
}
.wrapper .button:nth-child(1):hover .icon{
background: #4267B2;
}
.wrapper .button:nth-child(2):hover .icon{
background: #E1306C;
}
.wrapper .button:nth-child(3):hover .icon{
background: #1DA1F2;
}
.wrapper .button:nth-child(4):hover .icon{
background: #ff0000;
}
.wrapper .button .icon i{
font-size: 25px;
line-height: 60px;
transition: all 0.3s ease-out;
}
.wrapper .button:hover .icon i{
color: #fff;
}
.wrapper .button span{
font-size: 20px;
font-weight: 500;
line-height: 60px;
margin-left: 10px;
transition: all 0.3s ease-out;
}
.wrapper .button:nth-child(1) span{
color: #4267B2;
}
.wrapper .button:nth-child(2) span{
color: #E1306C;
}
.wrapper .button:nth-child(3) span{
color: #1DA1F2;
}
.wrapper .button:nth-child(4) span{
color: #ff0000;
}
.credit{
text-align: center;
margin-top: 20px;
color: #000;
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
.credit a{
text-decoration: none;
color:#000;
font-weight: bold;
}
Thank you for reading our blog. If you face any problem in creating these Awesome Social Media Buttons with Hover Effect using HTML & CSS, then contact us or comment us. We’ll try to provide a solution to your problem as soon as possible.
إرسال تعليق
Thank you
Learning robo team