Created
March 25, 2012 00:15
-
-
Save blimpage/2189939 to your computer and use it in GitHub Desktop.
Rounded imgs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Rounded imgs | |
*/ | |
body { | |
background: #111; | |
} | |
#pagewrap { | |
width: 910px; | |
display: block; | |
margin: auto; | |
} | |
div.imgcontainer { | |
width: 200px; | |
height: 200px; | |
background-position: center top | |
background-repeat: no-repeat; | |
margin-right: 10px; | |
display: inline-block; | |
border: 10px white solid; | |
overflow: hidden; | |
float: left; | |
} | |
div.imgcontainer, div.imgbox { | |
transition: border-radius 1s ease, opacity 1s ease; | |
border-radius: 50%; | |
} | |
div.imgcontainer:nth-child(4n+4) { | |
margin-right: 0px; | |
} | |
div.imgbox { | |
width: 200px; | |
height: 200px; | |
background-image: inherit; | |
background-position: center bottom; | |
} | |
.imgbox a { | |
display:block; | |
width: 200px; | |
height: 200px; | |
} | |
div.imgcontainer:hover { | |
border-radius: 12.5%; | |
transition: all 0.5s ease; | |
} | |
div.imgcontainer:hover > div { | |
border-radius: 12.5%; | |
opacity: 0; | |
transition: all 0.5s ease; | |
} | |
#m2f-2011-1 { | |
background-image: url("http://www.blimpage.com/pants/dabblet/sprite-m2f-2011-1.jpg"); | |
} | |
#m2f-2011-2 { | |
background-image: url("http://www.blimpage.com/pants/dabblet/sprite-m2f-2011-2.jpg"); | |
} | |
#m2f-2011-3 { | |
background-image: url("http://www.blimpage.com/pants/dabblet/sprite-m2f-2011-3.jpg"); | |
} | |
#m2f-2011-4 { | |
background-image: url("http://www.blimpage.com/pants/dabblet/sprite-m2f-2011-4.jpg"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="pagewrap"> | |
<div id="m2f-2011-1" class="imgcontainer"><div class="imgbox"><a href="http://www.blimpage.com/portfolio/cd-artwork-music2face/" target="_blank"></a></div></div> | |
<div id="m2f-2011-2" class="imgcontainer"><div class="imgbox"><a href="http://www.blimpage.com/portfolio/cd-artwork-music2face-2/" target="_blank"></a></div></div> | |
<div id="m2f-2011-3" class="imgcontainer"><div class="imgbox"><a href="http://www.blimpage.com/portfolio/cd-artwork-music2face-3/" target="_blank"></a></div></div> | |
<div id="m2f-2011-4" class="imgcontainer"><div class="imgbox"><a href="http://www.blimpage.com/portfolio/cd-artwork-music2face-4/" target="_blank"></a></div></div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"split","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment