mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
86 lines
1.4 KiB
HTML
86 lines
1.4 KiB
HTML
<div class="loader"></div>
|
|
<style>
|
|
/* From Uiverse.io by FWDJc - Tags: animated, colorful, dvd, keyframes, css animation */
|
|
.loader {
|
|
width: 150px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
position: relative;
|
|
animation: bounce 5s infinite;
|
|
}
|
|
|
|
.loader::before {
|
|
content: 'DVD';
|
|
position: absolute;
|
|
display: block;
|
|
left: 5%;
|
|
bottom: 55%;
|
|
color: green;
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
|
font-size: 4em;
|
|
font-weight: 900;
|
|
font-style: italic;
|
|
animation: div-color-change 5s infinite;
|
|
}
|
|
|
|
.loader::after {
|
|
content: 'FWDJC';
|
|
position: absolute;
|
|
top: 30%;
|
|
left: 21%;
|
|
color: #212121;
|
|
font-size: .5em;
|
|
font-weight: 800;
|
|
letter-spacing: 10px;
|
|
z-index: 1;
|
|
}
|
|
|
|
@keyframes bounce {
|
|
0% {
|
|
background-color: red;
|
|
transform: translateX(0) translateY(60px);
|
|
}
|
|
|
|
25% {
|
|
background-color: blue;
|
|
transform: translateX(60px) translateY(0);
|
|
}
|
|
|
|
55% {
|
|
background-color: green;
|
|
transform: translateX(0) translateY(-60px);
|
|
}
|
|
|
|
75% {
|
|
background-color: yellow;
|
|
transform: translateX(-60px) translateY(0);
|
|
}
|
|
|
|
100% {
|
|
background-color: purple;
|
|
transform: translateX(0) translateY(60px);
|
|
}
|
|
}
|
|
|
|
@keyframes div-color-change {
|
|
0% {
|
|
color: red;
|
|
}
|
|
|
|
25% {
|
|
color: blue;
|
|
}
|
|
|
|
55% {
|
|
color: green;
|
|
}
|
|
|
|
75% {
|
|
color: yellow;
|
|
}
|
|
|
|
100% {
|
|
color: purple;
|
|
}
|
|
}
|
|
</style>
|