Created
April 26, 2012 11:13
-
-
Save LukyVj/2498858 to your computer and use it in GitHub Desktop.
First, create the keyframes behavior
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
body{background:#999; | |
color:#fff; | |
width:100%; | |
height:100%;} | |
#bucket{ | |
width:100%; | |
height:100%;} | |
#con{ | |
height:500px; | |
width:300px; | |
margin:auto; | |
margin-top:50px; | |
background:rgba(0,0,0,0.1); | |
} | |
#start_panel{ | |
width:100%; | |
height:100%; | |
background:#fff; | |
} | |
#start_panel a{ | |
text-align:center; | |
color:#000; | |
text-decoration:none; | |
font-size:32px; | |
width:100px; | |
margin:auto;} | |
/* First, create the keyframes behavior */ | |
@-webkit-keyframes G_down { | |
0% { height:100%; } | |
100% { height: 10%; } | |
} | |
@-moz-keyframes G_down { | |
0% { opacity: 0; } | |
100% { opacity: 1; } | |
} | |
@-ms-keyframes G_down { | |
0% { opacity: 0; } | |
100% { opacity: 1; } | |
} | |
@-webkit-keyframes G_in { | |
from { | |
margin-top:0%; | |
} | |
to { | |
margin-top:500PX; | |
} | |
} | |
/* Then apply your animation to the element */ | |
#start_panel:target { | |
-webkit-animation: G_in 5s ease; | |
-moz-animation: G_down 5s infinite; | |
-ms-animation: G_down 5s infinite; | |
} |
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
<div id="bucket"> | |
<div id="con" class="close"> | |
<div class="onof" id="start_panel"> | |
<a href="#start_panel" class="shutter">O|1</a> | |
</div> | |
</div> | |
</div> |
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-vertical","fontsize":"80","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment