Last active
June 15, 2021 05:12
-
-
Save thesephist/64bdbc88cb1ebc0d5dee2ef3e5152883 to your computer and use it in GitHub Desktop.
Animated loading bar as used in Lucerne, Merlot, and Kin (Ink Codebase Browser)
This file contains hidden or 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
.loading { | |
width: 100%; | |
flex-grow: 1; | |
margin: 0; | |
height: 3px; | |
position: relative; | |
background: var(--hover-bg); | |
overflow: hidden; | |
} | |
@keyframes slider { | |
0% { | |
transform: translateX(-100%); | |
} | |
100% { | |
transform: translateX(100%); | |
} | |
} | |
.loading::after { | |
content: ''; | |
display: block; | |
height: 100%; | |
width: 60%; | |
padding-right: 40%; | |
background-color: var(--primary-text); | |
position: absolute; | |
top: 0; | |
left: 0; | |
animation: slider 1s linear infinite; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment