mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
82 lines
1.3 KiB
HTML
82 lines
1.3 KiB
HTML
<div class="eye-lid">
|
|
<div class="eye">
|
|
<div class="cornea">
|
|
<div class="white-pupil"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<style>
|
|
/* From Uiverse.io by FWDJc - Tags: minimalist, loader, css, eye, loading animation, aesthetic, css animation */
|
|
.eye-lid {
|
|
background-color: rgb(0, 0, 0);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
box-shadow: 0 9px 0 2px rgba(0, 0, 0, 0.2);
|
|
width: 150px;
|
|
height: 150px;
|
|
}
|
|
|
|
.eye {
|
|
background-color: #fffcf4;
|
|
border-radius: 50%;
|
|
transform: translate3d(0, 0, 0) rotate(90deg);
|
|
width: 120px;
|
|
height: 120px;
|
|
animation: eye 5s infinite;
|
|
}
|
|
|
|
@keyframes eye {
|
|
12%,
|
|
25% {
|
|
width: 100px;
|
|
height: 110px;
|
|
}
|
|
|
|
37%,
|
|
50% {
|
|
width: 60px;
|
|
height: 130px;
|
|
}
|
|
|
|
63%,
|
|
75% {
|
|
width: 100px;
|
|
height: 103px;
|
|
}
|
|
|
|
87% {
|
|
width: 100px;
|
|
height: 100px;
|
|
}
|
|
}
|
|
|
|
.cornea {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
background-color: rgb(0, 0, 0);
|
|
border-radius: 50%;
|
|
width: 50px;
|
|
height: 50px;
|
|
animation: eye-color 5s infinite;
|
|
}
|
|
|
|
@keyframes eye-color {
|
|
63%, 75% {
|
|
background-color: rgb(137, 1, 1);
|
|
}
|
|
}
|
|
|
|
.white-pupil {
|
|
position: absolute;
|
|
top: 70%;
|
|
left: 10%;
|
|
border-radius: 50%;
|
|
background-color: #fffcf4;
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
</style>
|