Created
May 17, 2020 19:51
-
-
Save clintonyeb/5c5469faedf0db3d8d3ded773d963f06 to your computer and use it in GitHub Desktop.
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
.lds-grid { | |
display: inline-block; | |
position: relative; | |
width: 64px; | |
height: 64px; | |
margin: auto; | |
} | |
.lds-grid div { | |
position: absolute; | |
width: 13px; | |
height: 13px; | |
border-radius: 50%; | |
background: green; | |
animation: lds-grid 1.2s linear infinite; | |
} | |
.lds-grid div:nth-child(1) { | |
top: 6px; | |
left: 6px; | |
animation-delay: 0s; | |
} | |
.lds-grid div:nth-child(2) { | |
top: 6px; | |
left: 26px; | |
animation-delay: -0.4s; | |
} | |
.lds-grid div:nth-child(3) { | |
top: 6px; | |
left: 45px; | |
animation-delay: -0.8s; | |
} | |
.lds-grid div:nth-child(4) { | |
top: 26px; | |
left: 6px; | |
animation-delay: -0.4s; | |
} | |
.lds-grid div:nth-child(5) { | |
top: 26px; | |
left: 26px; | |
animation-delay: -0.8s; | |
} | |
.lds-grid div:nth-child(6) { | |
top: 26px; | |
left: 45px; | |
animation-delay: -1.2s; | |
} | |
.lds-grid div:nth-child(7) { | |
top: 45px; | |
left: 6px; | |
animation-delay: -0.8s; | |
} | |
.lds-grid div:nth-child(8) { | |
top: 45px; | |
left: 26px; | |
animation-delay: -1.2s; | |
} | |
.lds-grid div:nth-child(9) { | |
top: 45px; | |
left: 45px; | |
animation-delay: -1.6s; | |
} | |
@keyframes lds-grid { | |
0%, 100% { | |
opacity: 1; | |
} | |
50% { | |
opacity: 0.5; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment