-
-
Save 0x7An/b0858ab0527ce9dabd7757053b08abcf to your computer and use it in GitHub Desktop.
Just another loader
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
div.container | |
each letter in ['L','O','A','D','I','N','G'] | |
div #{letter} |
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
.container{ | |
width:30%; | |
border-bottom:5px solid black; | |
margin:0 auto; | |
display: flex; | |
justify-content: space-around; | |
margin-top: 10%; | |
perspective: 1000px; | |
} | |
.container div{ | |
font-size: 3vw; | |
font-family: sans-serif; | |
transform-style: preserve-3d; | |
@for $i from 1 to 8 { | |
&:nth-child(#{$i}) { | |
animation: turn 3s infinite; | |
animation-delay: $i*200ms; | |
} | |
} | |
} | |
@keyframes turn{ | |
0% { | |
transform:rotateX(0deg); | |
transform-origin: 0 4vw; | |
} | |
100% { | |
transform:rotateX(360deg); | |
transform-origin: 0 4vw; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment