Created
August 19, 2021 18:59
-
-
Save seanmodd/8af5783e32ca8d56018968af2fd8a68b to your computer and use it in GitHub Desktop.
CSS for ScollToTop.js
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
.scroll { | |
position: fixed; | |
bottom: 0.5rem; | |
right: 0.5rem; | |
animation: fadeIn 700ms ease-in-out 1s both; | |
cursor: pointer; | |
font-size: 40px; | |
margin-right: 2rem; | |
} | |
@keyframes fadeIn { | |
from { | |
opacity: 0; | |
} | |
to { | |
opacity: 1; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment