Onhover Social media icon animation with CSS: A detail look on making Social media icons with animation on hover


Youtube Icon On Hover


GitHub icon on hover


Instagram icon on hover


Facebook icon on hover


Twitter icon on hover

What is a Social media icon animation?

Social media icon animation reveals text on hover with 360° text animation which looks great if put on a website

How can you use Social media icon animation?

We have made the code for you, you just have to copy the code from below and paste it where ever you want those Social media icons to be

Is it safe to use Social media icons?

It is completely safe to use Social media icon animation as it is just a HTML and CSS code that does not collect any kind of information

What are the advantages of Social media icon animation?

It has many advantages e.g. you can put this on your website's registration form or on your website's blog page so that people can join your website using those accounts or can share your blog post

A quick overview of our Blog (Social media icon animation on hover)

In this example you can learn, how to make Social media icon animation using HTML and CSS By Code With Bishal . Just Copy The Code From Here And Paste It Into Your Website. To Preview scroll the page. If you are having any problem viewing the code just refresh the page Social media icon animation is a lightweight and easy-to-use CSS code that creates a Social media icon animation for you. In this blog, there are four sections on the webpage, in the first section you can get the overview of the blog, in the second section there are few more coding blogs you might like,in the third section you can see the demo of the Social media icon animation made with HTML and CSS, after that you can copy the code and paste it [that's the fourth section]

You might like this :

Budget Calculator - using JS (JavaScript) and Bootstrap
Few days ago
How to check if the radio button is checked using JavaScript
Few days ago
Password Strength meter using JS
Few days ago
Email Validation using HTML, CSS and JavaScript
Few days ago
How to create Image Slider in HTML
Few days ago

This is an example



<!DOCTYPE html>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.min.css">
<title>Social media icons with hover effect(Pure CSS) - Code With Bishal</title>
<!-- created by Code With Bishal - www.codewithbishal.com -->
<div class="wrapper">
<div class="icon instagram">
<div class="tooltip">Instagram</div>
<span><i class="fab fa-instagram"></i></span>
<div class="icon github">
<div class="tooltip">Github</div>
<span><i class="fab fa-github"></i></span>
<div class="icon youtube">
<div class="tooltip">Youtube</div>
<span><i class="fab fa-youtube"></i></span>
<div class="icon facebook">
<div class="tooltip">Facebook</div>
<span><i class="fab fa-facebook-f"></i></span>
<div class="icon twitter">
<div class="tooltip">Twitter</div>
<span><i class="fab fa-twitter"></i></span>
Copy Contents

CSS Code

.wrapper {
display: inline-flex;
padding: 20%;
.wrapper .icon {
position: relative;
background-color: #ffffff;
margin: 10px;
width: 50px;
height: 50px;
font-size: 18px;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
cursor: pointer;
.wrapper .tooltip {
top: 0;
font-size: 14px;
color: #ffffff;
padding: 5px 8px;
border-radius: 5px;
opacity: 0;
pointer-events: none;
transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
.wrapper .icon:hover .tooltip {
top: -45px;
opacity: 1;
.wrapper .facebook:hover .tooltip{
transform: rotate(360deg);
background-color: #3b5999;
.wrapper .twitter:hover .tooltip{
background-color: #46c1f6;
transform: rotate(360deg);
.wrapper .instagram:hover .tooltip{
background-color: #e1306c;
transform: rotate(360deg);
.wrapper .github:hover .tooltip{
background-color: #333333;
color: #ffffff;
transform: rotate(360deg);
.wrapper .youtube:hover .tooltip{
background-color: #de463b;
transform: rotate(360deg);
@media (max-width: 600px) {
.wrapper {
display: block;