Created
February 11, 2013 14:54
-
-
Save LL782/4754869 to your computer and use it in GitHub Desktop.
Image Overlay for rollover
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
/** | |
* Image Overlay for rollover | |
*/ | |
#round-links a { | |
display: block; | |
float: left; | |
width: 300px; | |
height: 300px; | |
border-radius: 150px; | |
overflow: hidden; | |
margin: 24px 48px 24px 0; | |
position: relative; | |
} | |
#round-links a:after { | |
content: 'View Project'; | |
color: #fff; | |
text-align: center; | |
line-height: 300px; | |
font-family: Arial; | |
font-weight: bold; | |
font-size: 2em; | |
display: block; | |
background-color: #00adef; | |
height: 300px; | |
width: 300px; | |
position: absolute; | |
top: 0; | |
left: 0; | |
opacity: 0; | |
transition: opacity 0.5s; | |
} | |
#round-links a:hover:after { | |
opacity: 1; | |
} |
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
<!-- content to be placed inside <body>…</body> --> | |
<div id="round-links"> | |
<a href="http://monkeyzbox.com" target="_blank"><img src="http://farm4.staticflickr.com/3563/5754388259_628c55a1ea.jpg" /></a> | |
<a href="http://monkeyzbox.com" target="_blank"><img src="http://farm4.staticflickr.com/3548/5754388123_c7ee0c44bf.jpg" /></a> | |
<a href="http://monkeyzbox.com" target="_blank"><img src="http://farm4.staticflickr.com/3303/5754933814_0d1051b118.jpg" /></a> | |
</div><!-- round-links --> |
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
// alert('Hello world!'); |
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","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment