Created
April 4, 2016 22:53
-
-
Save pouwerkerk/05948c8a69fcbd56661b67d38ec6248c to your computer and use it in GitHub Desktop.
Pulsar
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
<style> | |
.press-here { | |
position: relative; | |
left: 90px; | |
top: -80px; | |
width: 164px; | |
margin: 100pt auto; | |
} | |
.arrow { | |
-webkit-animation: mover 2s infinite alternate; | |
animation: mover 2s infinite alternate; | |
position: relative; | |
top: 0; | |
left: 0; | |
width: 164px; | |
z-index: 2; | |
} | |
.shadow { | |
position: absolute; | |
top: 135px; | |
width: 164px; | |
z-index: 1; | |
-webkit-animation: pulser 2s infinite alternate; | |
animation: pulser 2s infinite alternate; | |
} | |
.demo { | |
background: url("https://www.dropbox.com/s/pz0tbv6zji9cvbf/dash-outline.png?dl=0"); | |
width: 387px; | |
z-index: 0; | |
} | |
@-webkit-keyframes mover { | |
0% { transform: translateY(0); } | |
100% { transform: translateY(-20px); } | |
} | |
@keyframes mover { | |
0% { transform: translateY(0); } | |
100% { transform: translateY(-20px); } | |
} | |
@-webkit-keyframes pulser { | |
0% { opacity: translateY(0); } | |
100% { opacity: translateY(-20px); } | |
} | |
@keyframes pulser { | |
0% { opacity: 1; } | |
100% { opacity: 0.25; } | |
} | |
</style> | |
<div class="demo"> | |
<div class="press-here"> | |
<img class="arrow" src="arrow.svg"/> | |
<img class="shadow" src="shadow.svg"/> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment