Skip to content

Instantly share code, notes, and snippets.

@shemul49rmc
Created November 22, 2013 06:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shemul49rmc/7595920 to your computer and use it in GitHub Desktop.
Save shemul49rmc/7595920 to your computer and use it in GitHub Desktop.
CSS Slide Rollover Animation
.social-slide {
height: 48px;
width: 48px;
margin: 10px;
float: left;
-webkit-transition: all ease 0.3s;
-moz-transition: all ease 0.3s;
-o-transition: all ease 0.3s;
-ms-transition: all ease 0.3s;
transition: all ease 0.3s;
}
.social-slide:hover {
background-position: 0px -48px;
box-shadow: 0px 0px 4px 1px rgba(0,0,0,0.8);
}
.twitter-hover {
background-image: url('images/twitter-hover.png');
}
.facebook-hover {
background-image: url('images/facebook-hover.png');
}
.google-hover {
background-image: url('images/google-hover.png');
}
.pinterest-hover {
background-image: url('images/pinterest-hover.png');
}
.linkedin-hover {
background-image: url('images/linkedin-hover.png');
}
.tumblr-hover {
background-image: url('images/tumblr-hover.png');
}
.reddit-hover {
background-image: url('images/reddit-hover.png');
}
.instagram-hover {
background-image: url('images/instagram-hover.png');
}
.stumbleupon-hover {
background-image: url('images/stumbleupon-hover.png');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment