liquid-motion / style.css
bird0867's picture
all of the blobs need to pick random directions to evolve their movement towards and the blobs could be a little larger and more blues and purples and pinks
f3d4af6 verified
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
@keyframes float {
0% {
transform: translate(0, 0) rotate(0deg);
}
100% {
transform: translate(var(--tx), var(--ty)) rotate(var(--r));
}
}
@keyframes morph {
0% {
border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%;
}
25% {
border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
}
50% {
border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
}
75% {
border-radius: 60% 40% 30% 70% / 50% 50% 50% 50%;
}
100% {
border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%;
}
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeInDelay {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
body {
font-family: 'Poppins', sans-serif;
margin: 0;
padding: 0;
overflow-x: hidden;
}
.blob {
position: absolute;
filter: blur(60px);
opacity: 0.7;
mix-blend-mode: screen;
animation: float 15s infinite ease-in-out;
will-change: transform;
}
.blob-1 {
width: 600px;
height: 600px;
background: radial-gradient(circle, rgba(121,9,103,0.8) 0%, rgba(150,0,255,0.6) 100%);
top: 10%;
left: 10%;
animation: morph 18s infinite ease-in-out, float 20s infinite ease-in-out;
}
.blob-2 {
width: 500px;
height: 500px;
background: radial-gradient(circle, rgba(0,212,255,0.8) 0%, rgba(100,100,255,0.6) 100%);
top: 20%;
right: 15%;
animation: morph 22s infinite ease-in-out reverse, float 25s infinite ease-in-out;
}
.blob-3 {
width: 450px;
height: 450px;
background: radial-gradient(circle, rgba(150,0,255,0.8) 0%, rgba(100,0,200,0.6) 100%);
bottom: 15%;
left: 20%;
animation: morph 20s infinite ease-in-out, float 18s infinite ease-in-out reverse;
}
.blob-4 {
width: 550px;
height: 550px;
background: radial-gradient(circle, rgba(255,0,200,0.8) 0%, rgba(200,0,150,0.6) 100%);
bottom: 10%;
right: 10%;
animation: morph 24s infinite ease-in-out reverse, float 22s infinite ease-in-out;
}
.blob-5 {
width: 400px;
height: 400px;
background: radial-gradient(circle, rgba(100,100,255,0.8) 0%, rgba(150,0,255,0.6) 100%);
top: 40%;
left: 40%;
animation: morph 16s infinite ease-in-out, float 19s infinite ease-in-out;
}
.blob-6 {
width: 480px;
height: 480px;
background: radial-gradient(circle, rgba(0,100,255,0.8) 0%, rgba(121,9,103,0.6) 100%);
top: 5%;
right: 30%;
animation: morph 26s infinite ease-in-out reverse, float 21s infinite ease-in-out;
}
.blob-7 {
width: 420px;
height: 420px;
background: radial-gradient(circle, rgba(200,0,255,0.8) 0%, rgba(150,0,200,0.6) 100%);
bottom: 30%;
left: 5%;
animation: morph 19s infinite ease-in-out, float 17s infinite ease-in-out reverse;
}
.blob-8 {
width: 520px;
height: 520px;
background: radial-gradient(circle, rgba(255,0,150,0.8) 0%, rgba(200,50,150,0.6) 100%);
top: 30%;
right: 5%;
animation: morph 23s infinite ease-in-out reverse, float 24s infinite ease-in-out;
}
.animate-fade-in {
animation: fadeIn 1.5s ease-out forwards;
}
.animate-fade-in-delay {
animation: fadeInDelay 2s ease-out 0.5s forwards;
opacity: 0;
}
@media (max-width: 768px) {
.blob {
filter: blur(40px);
opacity: 0.6;
}
.blob-1, .blob-2, .blob-3, .blob-4, .blob-5, .blob-6, .blob-7, .blob-8 {
width: 200px;
height: 200px;
}
}