
Icons with Animations
Before We Start to Icons with Animations
Icons with Animations can be used to animate a Icons, Buttons, etc. and create user attractive UI components.
So if you are a person who wishes to develop a website, you have to know how to create animations properly. Check out our tutorial and you can learn this techniques and use it on your web development. Below sections shows how to develop this animations.
How to create? We are here to solve your problem. In this article we discuss how to create a hover effect animations. Before we start please read the below articles which easier you to understand the process, if you are new to development.
Step 1 – Add HTML
It’s too easy and simple. Just copy and paste below code in your HTML editor between <body> </body> tag as below.
<div class='nav-container'>
<ul>
<li class='github'>
<a href='javascript:void(0)' target='_blank'>
<i class='fa fa-github fa-3x'></i>
</a>
</li>
<li class='codepen'>
<a href='javascript:void(0)' target='_blank'>
<i class='fa fa-codepen fa-3x'></i>
</a>
</li>
<li class='twitter'>
<a href='javascript:void(0)' target='_blank'>
<i class='fa fa-twitter fa-3x'></i>
</a>
</li>
</ul>
</div>
Step 2 – Add CSS
We use some external CSS link to this code. No need to worry about this, copy and paste below code in between <head></head> tag.
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" crossorigin="anonymous"/>
Copy and paste below code in your HTML editor between <style></style> tag as below.
<style>
@-webkit-keyframes full-circle {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(-360deg);
}
}
@keyframes full-circle {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(-360deg);
}
}
@-webkit-keyframes pop {
0% {
transform: scale(1, 1);
}
50% {
transform: scale(1.1, 1.1);
}
100% {
transform: scale(1, 1);
}
}
@keyframes pop {
0% {
transform: scale(1, 1);
}
50% {
transform: scale(1.1, 1.1);
}
100% {
transform: scale(1, 1);
}
}
@-webkit-keyframes rotate-vertical {
0% {
transform: rotateY(0deg);
}
100% {
transform: rotateY(360deg);
}
}
@keyframes rotate-vertical {
0% {
transform: rotateY(0deg);
}
100% {
transform: rotateY(360deg);
}
}
body {
background-color: #0e0e0e;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-around;
}
.nav-container ul {
list-style-type: none;
padding: 0;
}
.nav-container ul li {
display: inline-block;
}
.nav-container ul li a {
position: relative;
display: inline-block;
width: 5em;
height: 5em;
padding: 14px;
border: 2px solid #3acb8e;
border-radius: 50%;
margin: 10px 30px;
text-align: center;
color: #3acb8e;
}
li.codepen:hover {
-webkit-animation: pop 0.3s 2;
animation: pop 0.3s 2;
}
li.github:hover {
-webkit-animation: full-circle 1.1s ease-out;
animation: full-circle 1.1s ease-out;
}
li.twitter:hover {
-webkit-animation: rotate-vertical 1.1s ease-out;
animation: rotate-vertical 1.1s ease-out;
}
</style>
At the end we will have something like this. You can change fonts, colors, backgrounds and all things that you want. Enjoy it.
Out Put

Video Tutorial
Please watch this video to better understand this tutorial and don’t forget to subscribe to our channel.
Help others to find out about this article on Social Media sites. If you have any doubt or any problem, don’t hesitate to contact us. Thereafter we will be able to help you and also make sure you bookmark our site on your browser.