Skip to content

Instantly share code, notes, and snippets.

@LibertysYarn
Created May 28, 2013 16:31
Show Gist options
  • Save LibertysYarn/5664058 to your computer and use it in GitHub Desktop.
Save LibertysYarn/5664058 to your computer and use it in GitHub Desktop.
Round Image Hover effect
.thumb-wrapper {
width: 269px;
max-width: 100%;
height: 250px;
position: relative;
left: -1px;
display: block;
overflow: hidden;
text-align: center;
margin: auto;
}
.thumb-wrapper img {
min-height: 250px;
z-index: 90;
}
.thumb-wrapper.tc-holder {
display: none\9;
/* IE 8 and below */
}
.round-div {
display: block;
-webkit-transition: all 0.3s ease;
-moz-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
transition: all 0.3s ease;
position: absolute;
width: 170px;
height: 170px;
z-index: 99;
-webkit-border-radius: 60px;
-moz-border-radius: 500px;
border-radius: 900px;
border: 104px solid #fafafa;
top: -66px;
left: -54px;
}
.round-div.no-effect {
border: none;
}
#footer .round-div {
border-color: #5a5a5a;
}
.no-cssanimations .round-div {
border: 0px;
}
.no-cssanimations .thumb-wrapper {
opacity: 0.7;
}
.no-cssanimations .thumb-wrapper:hover {
opacity: 1;
}
.widget-front.hover .round-div,
article.hover .round-div {
-webkit-transform: scale(1.4);
-moz-transform: scale(1.4);
-ms-transform: scale(1.4);
-o-transform: scale(1.4);
transform: scale(1.4);
}
.widget-front {
text-align: center;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment