mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
58 lines
945 B
HTML
58 lines
945 B
HTML
<div class="content">
|
|
<div class="text">LOADING...</div>
|
|
<div class="text">LOADING...</div>
|
|
</div>
|
|
<style>
|
|
/* From Uiverse.io by JesusRafaelNavaCruz - Source: Oluwakemi - https://codepen.io/techgirldiaries/pen/LYWPJPN - Tags: loading, animated, loading animation */
|
|
.content {
|
|
position: relative;
|
|
}
|
|
|
|
.content .text {
|
|
color: #fff;
|
|
font-size: 3rem;
|
|
position: absolute;
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
|
|
.content .text:nth-child(1) {
|
|
color: transparent;
|
|
-webkit-text-stroke: 2px #8338ec;
|
|
}
|
|
|
|
.content .text:nth-child(2) {
|
|
color: #c19bf5;
|
|
animation: animate 4s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes animate {
|
|
0%,
|
|
100% {
|
|
clip-path: polygon(
|
|
0% 45%,
|
|
16% 44%,
|
|
33% 50%,
|
|
54% 60%,
|
|
70% 61%,
|
|
84% 59%,
|
|
100% 52%,
|
|
100% 100%,
|
|
0% 100%
|
|
);
|
|
}
|
|
|
|
50% {
|
|
clip-path: polygon(
|
|
0% 60%,
|
|
15% 65%,
|
|
34% 66%,
|
|
51% 62%,
|
|
67% 50%,
|
|
84% 45%,
|
|
100% 46%,
|
|
100% 100%,
|
|
0% 100%
|
|
);
|
|
}
|
|
}
|
|
</style>
|