Created
December 19, 2016 20:32
-
-
Save danielmascena/542e544cf94cf091c0d8f9f7a92be7d8 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; | |
position: relative; | |
animation: rolling-position 10s infinite linear; | |
} | |
.points:before { | |
content: ""; | |
display: block; | |
height: 10px; | |
width: 10px; | |
position: absolute; | |
top: 200px; | |
left: 300px; | |
box-shadow: 10px 10px, | |
0px 10px blue; | |
} | |
.num1, .num2 { | |
position: absolute; | |
top: 200px; | |
width: 50px; | |
height: 50px; | |
background: brown; | |
} | |
.num1 { | |
left: 100px; | |
} | |
.num2 { | |
right: 400px; | |
} | |
.num1:hover ~ .points:before{ | |
box-shadow: 20px 20px, | |
10px 20px blue; | |
} | |
.num2:hover ~ .points:before { | |
box-shadow: 0px -10px, | |
-10px -10px blue; | |
} | |
@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 class="num1">btn 1</div> | |
<div class="num2">btn 2</div> | |
<div class="points"></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