Skip to content

Instantly share code, notes, and snippets.

@pouwerkerk
Created April 4, 2016 22:53
Show Gist options
  • Save pouwerkerk/05948c8a69fcbd56661b67d38ec6248c to your computer and use it in GitHub Desktop.
Save pouwerkerk/05948c8a69fcbd56661b67d38ec6248c to your computer and use it in GitHub Desktop.
Pulsar
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<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>
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment