Created
February 16, 2013 15:23
-
-
Save andr3/4967356 to your computer and use it in GitHub Desktop.
Exercicio
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
/** | |
* Exercicio | |
* | |
*/ | |
body { | |
background: #f06; | |
background: linear-gradient(45deg, #eee, #fff); | |
min-height: 100%; | |
font-family: helvetica, sans-serif; | |
} | |
#device { | |
width: 320px; | |
height: 480px; | |
margin: 1em auto; | |
padding: 0; | |
border: 2px solid #000; | |
border-radius: 0.5em; | |
background: black; | |
overflow: hidden; | |
} | |
#device ul { | |
margin: 0; | |
-webkit-animation-name: sliding; | |
-webkit-animation-duration: 25s; | |
-webkit-animation-timing-function: linear; | |
-webkit-animation-direction: alternate; | |
-webkit-animation-iteration-count: infinite; | |
width: 640px; height: 400px; | |
color: white; | |
} | |
#device li { | |
list-style-type: none; | |
} | |
#device a, #device .intervalo { | |
color: white; | |
display: block; | |
padding: 0.5em 1em; | |
} | |
@-webkit-keyframes sliding { | |
0% { -webkit-transform: translate(0,480px); } | |
50% { -webkit-transform: translate(0,0); } | |
100% { -webkit-transform: translate(0,-480px); } | |
} |
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="device"> <!-- a fingir --> | |
<ul> | |
<li><a href="#/foobar">Lorem ipsum</a></li> | |
<li><a href="#/foobar">Lorem ipsum</a></li> | |
<li><a href="#/foobar">Lorem ipsum</a></li> | |
<li><a href="#/foobar">Lorem ipsum</a></li> | |
<li class="intervalo">Intervalo</li> | |
<li><a href="#/foobar">Lorem ipsum</a></li> | |
<li><a href="#/foobar">Lorem ipsum</a></li> | |
<li><a href="#/foobar">Lorem ipsum</a></li> | |
<li><a href="#/foobar">Lorem ipsum</a></li> | |
<li><a href="#/foobar">Lorem ipsum</a></li> | |
</ul> | |
</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
// 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":"","page":"result"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment