mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-27 20:50:21 +08:00
35 lines
660 B
HTML
35 lines
660 B
HTML
<div class="moon">
|
|
<div class="shadow"></div>
|
|
</div>
|
|
<style>
|
|
/* From Uiverse.io by JkHuger - Tags: loader */
|
|
.moon, .shadow {
|
|
margin: auto;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
background: rgb(216, 216, 216);
|
|
border-radius: 50%;
|
|
height: 50px;
|
|
width: 50px;
|
|
}
|
|
|
|
.shadow {
|
|
width: 50px;
|
|
height: 50px;
|
|
position: relative;
|
|
background: #212121;
|
|
/*Change these color to the bg of your website*/
|
|
transition: all .3s ease;
|
|
animation: move_4123 1.2s infinite alternate ease-in-out;
|
|
transform: translate3d(8px, -8px, 0);
|
|
}
|
|
|
|
@keyframes move_4123 {
|
|
100% {
|
|
transform: translate3d(36px, -36px, 0);
|
|
}
|
|
}
|
|
</style>
|