Created
May 12, 2021 14:07
-
-
Save SteGriff/edb9f759df684cdeddf3943fe691abc4 to your computer and use it in GitHub Desktop.
Pirijan's Earth Spinner
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
| <html> | |
| <head> | |
| <style> | |
| @keyframes slideMoon{0%{left:-40%} | |
| to{left:145%} | |
| } | |
| @keyframes slideEarth{0%{left:-60%} | |
| to{left:145%} | |
| } | |
| @keyframes slideAsteroid{0%{left:-70%} | |
| to{left:150%} | |
| } | |
| @keyframes slideAsteroidDust{0%{left:-55%} | |
| to{left:150%} | |
| } | |
| .loader { | |
| overflow: hidden; | |
| display: inline-block; | |
| width: 26px; | |
| height: 25px; | |
| position: relative; | |
| border-radius: 100px; | |
| background-color: #000; | |
| vertical-align: middle; | |
| transform: translateZ(0); | |
| } | |
| .loader .earth, .loader .moon { | |
| height: 100%; | |
| width: 100%; | |
| border-radius: 100px; | |
| position: absolute; | |
| top: 50%; | |
| margin-top: -50%; | |
| margin-left: -50%; | |
| mix-blend-mode: exclusion; | |
| } | |
| .loader .moon { | |
| background-color: #fe84d4; | |
| animation: slideMoon 2s ease-out infinite; | |
| } | |
| .loader .earth { | |
| background-color: pink; | |
| animation: slideEarth 3s ease-out infinite; | |
| } | |
| .loader .asteroid, .loader .asteroid-dust { | |
| border-radius: 100px; | |
| position: absolute; | |
| top: 100%; | |
| margin-left: -70%; | |
| mix-blend-mode: exclusion; | |
| } | |
| .loader .asteroid { | |
| height: 30%; | |
| width: 30%; | |
| background-color: #00fa9a; | |
| margin-top: -50%; | |
| animation: slideAsteroid 1.5s ease-in infinite; | |
| } | |
| .loader .asteroid-dust { | |
| height: 25%; | |
| width: 25%; | |
| background-color: #b46bd2; | |
| margin-top: -70%; | |
| animation: slideAsteroidDust 1.3s ease-in infinite; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="loader"> | |
| <div class="moon"></div><div class="earth"></div><div class="asteroid"></div><div class="asteroid-dust"></div> | |
| </div> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment