A Pen by Yannick Bisaillon on CodePen.
Created
July 21, 2016 01:55
-
-
Save CodeMyUI/823d22737686e09ae24cce2eabbd5f4a to your computer and use it in GitHub Desktop.
Bounce Scroll Down Arrow
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
<div class="arrow bounce"> | |
<a class="fa fa-arrow-down fa-2x" href="#"></a> | |
</div> |
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
@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