Created
June 22, 2012 21:11
-
-
Save MikeFielden/2975230 to your computer and use it in GitHub Desktop.
Movie opening
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
/* Movie opening */ | |
body { background: black; padding: 100px; margin: 0; } | |
h1 { | |
position: relative; | |
text-align: center; | |
color: white; | |
text-transform: uppercase; | |
padding: 1px; | |
font-family: 'Raleway', cursive; | |
font-weight: 100; | |
background: linear-gradient(left, black, #eee, black); | |
} | |
h1:before { | |
content: ""; | |
position: absolute; | |
left: 50%; | |
top: -50px; | |
width: 800px; | |
height: 600px; | |
margin-left: -400px; | |
margin-top: -220px; | |
background: radial-gradient(50% 50%, ellipse closest-side, #ccc, black); | |
z-index: -1; | |
} | |
h1 a { | |
background: black; | |
display: block; | |
padding: 20px; | |
text-decoration: none; | |
letter-spacing: 5px; | |
color: white; | |
animation: comein 2.0s 1 ease-in-out forwards; | |
} | |
@keyframes comein { | |
0% { letter-spacing: 5px; color: rgba(255,255,255,0);} | |
55% { letter-spacing: 10px; } | |
100% { letter-spacing: 20px; color: rgba(255,255,255,1)} | |
} |
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
<link href='http://fonts.googleapis.com/css?family=Raleway:100' rel='stylesheet'> | |
<h1><a href="#">one-eva dashboard</a></h1> | |
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":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment