Created
March 28, 2012 03:07
-
-
Save eLindemann/2223220 to your computer and use it in GitHub Desktop.
HTML5 eMetro
This file contains 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
/* HTML5 eMetro */ | |
html { | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
color: #fff; | |
font-size: 18pt; | |
font-family: "Cabin", sans-serif; | |
min-height: 100%; | |
} | |
body a { | |
color: #fff; | |
text-decoration: none; | |
} | |
a.eMetro img.cover:hover { | |
opacity: 0; | |
-webkit-transition: opacity 0.25s; | |
} | |
a.eMetro img.cover { | |
position: absolute; | |
z-index: 2; | |
opacity: 1; | |
-webkit-transition: opacity 0.5s; | |
} | |
a.eMetro { | |
background: #00AF67; | |
display: block; | |
width: 280px; | |
height: 136px; | |
} | |
a.eMetro span { | |
color: #fff; | |
font-size: 12pt; | |
position: absolute; | |
margin: 110px 10px; | |
z-index: 1; | |
} | |
a.eMetro img.icon { | |
margin: 10px 90px; | |
z-index: 1; | |
position: absolute; | |
} |
This file contains 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
<a href="http://www.eriklindemann.com/eMetro/images/full/naptime.jpg" class="eMetro"> | |
<span>Kittens!</span> | |
<img class="icon" src="http://eriklindemann.com/images/cat-icon.png" /> | |
<img class="cover" src="http://www.eriklindemann.com/eMetro/images/thumb/naptime.png" /> | |
</a> | |
HTML5 Transitions at work... |
This file contains 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":"separate","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment