Skip to content

Instantly share code, notes, and snippets.

@ankitksh81
Created November 2, 2021 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ankitksh81/cf4f54bd113ab7407ecb2cff5eb6e07f to your computer and use it in GitHub Desktop.
Save ankitksh81/cf4f54bd113ab7407ecb2cff5eb6e07f to your computer and use it in GitHub Desktop.
<div class="scroll-wrapper"><a href="#scroll-here"><i class="scroll fas fa-arrow-down"></i></a>
<style>
.scroll-wrapper {text-align:center;}
.scroll {
font-size: 50px;
color: #000;
-webkit-animation: scrolling 3s ease infinite;
-moz-animation: scrolling 3s ease infinite;
-o-animation: scrolling 3s ease infinite;
animation: scrolling 3s ease infinite;
}
@keyframes scrolling {
0% {
transform: translate(0);
}
50% {
transform: translate(0,40px);}
100% {
transform: translate(0);
}
}
</style></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment