Skip to content

Instantly share code, notes, and snippets.

@CodeMyUI
Created July 21, 2016 01:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save CodeMyUI/823d22737686e09ae24cce2eabbd5f4a to your computer and use it in GitHub Desktop.
Save CodeMyUI/823d22737686e09ae24cce2eabbd5f4a to your computer and use it in GitHub Desktop.
Bounce Scroll Down Arrow
<div class="arrow bounce">
<a class="fa fa-arrow-down fa-2x" href="#"></a>
</div>
@bg: #2d2d37; // Dark blue
@primary: #fd6b21; // Orange
body { background: @bg;}
a { color: white; text-decoration: none; }
.arrow {
text-align: center;
margin: 8% 0;
}
.bounce {
-moz-animation: bounce 2s infinite;
-webkit-animation: bounce 2s infinite;
animation: bounce 2s infinite;
}
@keyframes bounce {
0%, 20%, 50%, 80%, 100% {
transform: translateY(0);
}
40% {
transform: translateY(-30px);
}
60% {
transform: translateY(-15px);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment