Created
March 24, 2012 01:46
-
-
Save blimpage/2177352 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; | |
font-size: 0; | |
} | |
div.imgcontainer { | |
width: 200px; | |
height: 200px; | |
background-repeat: no-repeat; | |
margin-right: 10px; | |
display: inline-block; | |
border: 10px white solid; | |
border-radius: 50%; | |
overflow: hidden; | |
transition: all 1s ease; | |
} | |
div.imgcontainer:nth-child(4n+4) { | |
margin-right: 0px; | |
} | |
div.imgbox { | |
width: 200px; | |
height: 200px; | |
background-image: inherit; | |
background-position: 0px -200px; | |
transition: all 1s ease | |
} | |
.imgbox a { | |
display:block; | |
width: 200px; | |
height: 200px; | |
} | |
div.imgcontainer:hover { | |
border-radius: 12.5%; | |
transition: all 0.5s ease; | |
} | |
div.imgcontainer:hover > div { | |
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