mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 21:20:21 +08:00
85 lines
1.5 KiB
HTML
85 lines
1.5 KiB
HTML
<div class="jelly"></div>
|
|
<svg width="0" height="0" class="jelly-maker">
|
|
<defs>
|
|
<filter id="uib-jelly-ooze">
|
|
<feGaussianBlur in="SourceGraphic" stdDeviation="6.25" result="blur"></feGaussianBlur>
|
|
<feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -7" result="ooze"></feColorMatrix>
|
|
<feBlend in="SourceGraphic" in2="ooze"></feBlend>
|
|
</filter>
|
|
</defs>
|
|
</svg>
|
|
<style>
|
|
/* From Uiverse.io by G4b413l - Tags: loader */
|
|
.jelly {
|
|
--uib-size: 40px;
|
|
--uib-speed: .8s;
|
|
--uib-color: #2c2b2b;
|
|
position: relative;
|
|
height: calc(var(--uib-size) / 2);
|
|
width: var(--uib-size);
|
|
filter: url('#uib-jelly-ooze');
|
|
animation: rotate72317 calc(var(--uib-speed) * 2) linear infinite;
|
|
}
|
|
|
|
.jelly::before,
|
|
.jelly::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0%;
|
|
left: 25%;
|
|
width: 50%;
|
|
height: 100%;
|
|
background: var(--uib-color);
|
|
border-radius: 100%;
|
|
}
|
|
|
|
.jelly::before {
|
|
animation: shift-left var(--uib-speed) ease infinite;
|
|
}
|
|
|
|
.jelly::after {
|
|
animation: shift-right var(--uib-speed) ease infinite;
|
|
}
|
|
|
|
.jelly-maker {
|
|
width: 0;
|
|
height: 0;
|
|
position: absolute;
|
|
}
|
|
|
|
@keyframes rotate72317 {
|
|
0%,
|
|
49.999%,
|
|
100% {
|
|
transform: none;
|
|
}
|
|
|
|
50%,
|
|
99.999% {
|
|
transform: rotate(90deg);
|
|
}
|
|
}
|
|
|
|
@keyframes shift-left {
|
|
0%,
|
|
100% {
|
|
transform: translateX(0%);
|
|
}
|
|
|
|
50% {
|
|
transform: scale(0.65) translateX(-75%);
|
|
}
|
|
}
|
|
|
|
@keyframes shift-right {
|
|
0%,
|
|
100% {
|
|
transform: translateX(0%);
|
|
}
|
|
|
|
50% {
|
|
transform: scale(0.65) translateX(75%);
|
|
}
|
|
}
|
|
|
|
</style>
|