Last active
November 12, 2020 07:20
-
-
Save blakazulu/de3f4a7ea6c4bda0bbd14aa080cdd11b to your computer and use it in GitHub Desktop.
medium-text-bg-animation-demo
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
body { | |
background-color: #2b2c34; | |
} | |
.animated-text { | |
font-family: "VT323", monospace, sans-serif; | |
text-shadow: 0 0 1px #ffffff; | |
position: fixed; | |
bottom: -100vh; | |
user-select: none; | |
animation-name: float-animation; | |
animation-timing-function: ease-in-out; | |
z-index: -1; | |
} | |
@keyframes float-animation { | |
0% { | |
top: 100vh; | |
opacity: 0; | |
} | |
25% { | |
opacity: 1; | |
} | |
50% { | |
opacity: 1; | |
} | |
75% { | |
opacity: 0.75; | |
} | |
100% { | |
top: 0; | |
opacity: 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment