Last active
August 29, 2015 14:21
-
-
Save paulfalgout/50a88d0fe732fdac7326 to your computer and use it in GitHub Desktop.
Inline preloader
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
<div class='inline-preloader'> | |
<div class='inline-preloader__bullet'></div> | |
<div class='inline-preloader__bullet'></div> | |
<div class='inline-preloader__bullet'></div> | |
</div> |
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
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
.inline-preloader__bullet { | |
animation: inline-preloader-anim 0.8s ease-in-out 0s infinite; | |
border-radius: 50%; | |
background: #00D977; | |
position: absolute; | |
height: 5px; | |
width: 5px; | |
&:nth-child(2) { | |
animation-delay: 0.15s; | |
} | |
&:nth-child(3) { | |
animation-delay: 0.3s; | |
} | |
} | |
@keyframes inline-preloader-anim { | |
0% { | |
opacity: 0; | |
transform: translateX(0px); | |
} | |
50% { | |
opacity: 1; | |
} | |
100% { | |
opacity: 0; | |
transform: translateX(40px); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment