Last active
December 16, 2016 13:35
-
-
Save danielmascena/073a5fde5327a9d56e181b05c463fb8d to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
#fundo { | |
background: url(http://i.imgur.com/UZKEjzG.png) -800px center; | |
height: 300px; | |
width: 1000px; | |
animation: rolling-position 10s infinite linear; | |
} | |
#fundo:before { | |
content: ""; | |
position: fixed; | |
display: block; | |
left: 20px; | |
background: green; | |
top: 110px; | |
width: 10px; | |
height: 10px; | |
box-shadow: 0px 10px, | |
10px 10px blue; | |
} | |
#fundo:hover:before{ | |
left: 220px; | |
transition: left 4s linear; | |
} | |
#cubo { | |
width: 20px; | |
height: 20px; | |
background: red; | |
position: fixed; | |
left: 200px; | |
top: 100px; | |
} | |
@keyframes rolling-position { | |
to { | |
background-position: -1800px center; | |
} | |
} |
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
<!-- content to be placed inside <body>…</body> --> | |
<section id="fundo"> | |
<div id="cubo"></div> | |
</section> |
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
// alert('Hello world!'); |
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":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment