Step #1:-Define Menu Container
<div class="container"> <ul> <li><a href="http://www.twitter.com"><span><img src="http://www.technicalkeeda.com/img/images/demo/twitter.png"></span></a></li> <li><a href="http://www.facebook.com"><span><img src="http://www.technicalkeeda.com/img/images/demo/facebook.png"></span></a></li> <li><a href="http://www.youtube.com"><span><img src="http://www.technicalkeeda.com/img/images/demo/youtube.png"></span></a></li> </ul> </div>
Step #2:-Define Css
<style>
.container {
margin-top:5px;
margin-left:5px;
}
.container h1{
margin:5px;
padding:5px;
}
ul {
width:32px;
list-style: none;
}
li a span {
display: block; width: 30px; height: 32px;
position: relative; z-index: 10;
margin:auto;
-webkit-transition: -webkit-transform 0.4s ease-out;
-moz-transition: -moz-transform 0.4s ease-out;
transition: transform 0.4s ease-out;
}
.container ul li a:hover span {
-webkit-transform: rotate(360deg);
-moz-transform: rotate(360deg);
transform: rotate(360deg);
}
</style>
Step #3:-Finish Enjoy the Live demo :)
Hi I am Yashwant founder of www.technicalkeeda.com, Purpose of this website to share the programming knowledge in the form post , blogs and articles.