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="one-div"></div>
|
|
<style>
|
|
/* From Uiverse.io by FWDJc - Tags: card, challenge, div, dvd */
|
|
.one-div {
|
|
width: 230px;
|
|
height: 50px;
|
|
border-radius: 50%;
|
|
position: relative;
|
|
animation: bounce 5s infinite;
|
|
}
|
|
|
|
.one-div::before {
|
|
content: 'DIV';
|
|
position: absolute;
|
|
display: block;
|
|
left: 12%;
|
|
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: 6em;
|
|
font-weight: 900;
|
|
font-style: italic;
|
|
animation: div-color-change 5s infinite;
|
|
}
|
|
|
|
.one-div::after {
|
|
content: 'DIVISION';
|
|
position: absolute;
|
|
top: 27%;
|
|
left: 18%;
|
|
color: #212121;
|
|
font-size: 1em;
|
|
font-weight: 800;
|
|
letter-spacing: 10px;
|
|
z-index: 1;
|
|
}
|
|
|
|
@keyframes bounce {
|
|
0% {
|
|
background-color: red;
|
|
transform: translateX(0) translateY(100px);
|
|
}
|
|
|
|
25% {
|
|
background-color: blue;
|
|
transform: translateX(100px) translateY(0);
|
|
}
|
|
|
|
55% {
|
|
background-color: green;
|
|
transform: translateX(0) translateY(-100px);
|
|
}
|
|
|
|
75% {
|
|
background-color: yellow;
|
|
transform: translateX(-100px) translateY(0);
|
|
}
|
|
|
|
100% {
|
|
background-color: purple;
|
|
transform: translateX(0) translateY(100px);
|
|
}
|
|
}
|
|
|
|
@keyframes div-color-change {
|
|
0% {
|
|
color: red;
|
|
}
|
|
|
|
25% {
|
|
color: blue;
|
|
}
|
|
|
|
55% {
|
|
color: green;
|
|
}
|
|
|
|
75% {
|
|
color: yellow;
|
|
}
|
|
|
|
100% {
|
|
color: purple;
|
|
}
|
|
}
|
|
</style>
|