Created
October 3, 2016 16:16
-
-
Save anonymous/b530581930d30920dff54fe81c78cfec 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