mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 13:10:21 +08:00
51 lines
796 B
HTML
51 lines
796 B
HTML
<div class="one-div"></div>
|
|
<style>
|
|
/* From Uiverse.io by Luciifer666 - Tags: loading, card, one-div */
|
|
.one-div {
|
|
width: 100px;
|
|
height: 100px;
|
|
margin: 100px auto;
|
|
position: relative;
|
|
}
|
|
|
|
.one-div::before, .one-div::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 50%;
|
|
border: 6px solid transparent;
|
|
}
|
|
|
|
.one-div::before {
|
|
border-top-color: #3468db;
|
|
animation: spin 1.5s infinite linear;
|
|
}
|
|
|
|
.one-div::after {
|
|
border-top-color: #e67e22;
|
|
animation: spin-reverse 1.5s infinite linear;
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
}
|
|
|
|
100% {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
@keyframes spin-reverse {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
}
|
|
|
|
100% {
|
|
transform: rotate(-360deg);
|
|
}
|
|
}
|
|
</style>
|