Skip to content

Instantly share code, notes, and snippets.

@srikat
Created February 9, 2014 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save srikat/8898448 to your computer and use it in GitHub Desktop.
Save srikat/8898448 to your computer and use it in GitHub Desktop.
Making Home Bottom images circular with zoom on hover in Outreach Pro.
add_image_size( 'home-bottom', 200, 200, TRUE );
.home-bottom {
text-align: center;
}
.home-bottom .widget {
position: relative;
}
.home-bottom .featured-content img {
border-radius: 1000px;
-webkit-border-radius: 1000px;
-moz-border-radius: 1000px;
-webkit-transition: all .5s ease;
-moz-transition: all .5s ease;
-o-transition: all .5s ease;
transition: all .5s ease;
}
.home-bottom .featured-content a {
margin: 0 auto;
display: block;
}
.home-bottom .featured-content a:hover img {
transform: scale(1.2,1.2);
-webkit-transform: scale(1.2,1.2);
-moz-transform: scale(1.2,1.2);
-o-transform: scale(1.2,1.2);
-ms-transform: scale(1.2,1.2);
opacity: .2;
filter: alpha(opacity = 20);
}
.home-bottom .widget-title {
position: absolute;
color: #fff;
top: 28%;
width: 100%;
text-align: center;
font-size: 2rem;
z-index: 100;
}
.home-bottom .featured-content .entry-content {
margin-top: 1rem;
}
.home-bottom .featured-content a.more-link {
margin-top: 1rem;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment