Liquid Morphing Shape Effect
Using CSS border-radius dynamically animated to create a beautiful, organic liquid or blob shape.
Did you know CSS border-radius can take 8 values? This allows for wildly organic shapes that don’t look like squares or circles!
8-Point Border Radius
.blob {
width: 300px;
height: 300px;
background: linear-gradient(45deg, #f43f5e, #f97316);
animation: morph 8s ease-in-out infinite;
border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}
@keyframes morph {
0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}
Check out the Live Demo to see the shape smoothly transition as if it’s fluid.