mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
73 lines
No EOL
1.4 KiB
HTML
73 lines
No EOL
1.4 KiB
HTML
<div class="lava-lamp">
|
|
<div class="bubble"></div>
|
|
<div class="bubble1"></div>
|
|
<div class="bubble2"></div>
|
|
<div class="bubble3"></div>
|
|
</div>
|
|
|
|
<style>
|
|
/* From Uiverse.io by Hashir-Ahmed123 - Tags: animation, red, green, blue, purple, pink, gradient, smooth */
|
|
@keyframes drop {
|
|
0% {
|
|
transform: translateY(0px);
|
|
}
|
|
50% {
|
|
transform: translateY(80px);
|
|
}
|
|
100% {
|
|
transform: translateY(0px);
|
|
}
|
|
}
|
|
|
|
.lava-lamp {
|
|
position: relative;
|
|
width: 50px;
|
|
height: 100px;
|
|
background: #000;
|
|
border-radius: 25px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.bubble {
|
|
position: absolute;
|
|
top: 0;
|
|
width: 20px;
|
|
height: 20px;
|
|
background: linear-gradient(to bottom, #e64980, #ff8787);
|
|
border-radius: 50%;
|
|
left: 15px;
|
|
animation: drop 5s ease-in-out infinite;
|
|
}
|
|
.bubble1 {
|
|
position: absolute;
|
|
top: 0;
|
|
width: 20px;
|
|
height: 20px;
|
|
background: linear-gradient(to bottom, #82c91e, #3bc9db);
|
|
border-radius: 50%;
|
|
left: 1px;
|
|
animation: drop 3s ease-in-out infinite;
|
|
}
|
|
.bubble2 {
|
|
position: absolute;
|
|
top: 0;
|
|
width: 20px;
|
|
height: 20px;
|
|
background: linear-gradient(to bottom, #7950f2, #f783ac);
|
|
border-radius: 50%;
|
|
left: 30px;
|
|
animation: drop 4s ease-in-out infinite;
|
|
}
|
|
.bubble3 {
|
|
position: absolute;
|
|
top: 0;
|
|
width: 20px;
|
|
height: 20px;
|
|
background: linear-gradient(to bottom, #4481eb, #04befe);
|
|
border-radius: 50%;
|
|
left: 20px;
|
|
animation: drop 6s ease-in-out infinite;
|
|
}
|
|
|
|
</style>
|
|
|