-
-
Save theStrangeAdventurer/26815615d06955112bb04de8fe236e13 to your computer and use it in GitHub Desktop.
Scroll down animation css (streak animation)
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
.image-down-arrows span{ | |
position: relative; | |
display: block; | |
width: 3px; | |
height: 8rem; | |
background-color: #fff; | |
animation: scrolldown 3.5s infinite; | |
} | |
@keyframes scrolldown { | |
0% { | |
height: 0; | |
top: -8rem; | |
transform: translateY(0); | |
} | |
50% { | |
height: 8rem; | |
top: 0; | |
transform: translateY(0); | |
} | |
75% { | |
height: 0; | |
top: -8rem;; | |
transform: translateY(8rem); | |
} | |
100% { | |
height: 0; | |
top: -8rem; | |
transform: translateY(0); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment