Toggle navigation
☰
HTML
CSS
Scripting
Database
<!doctype html> <title>Example</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; font-family: sans-serif; } .mesh-container { width: 100%; height: 100%; position: absolute; top: 0; left: 0; right: 0; bottom: 0; overflow: hidden; background-color: #2b4162; z-index: 0; } /* Base style for blending multiple orbs together smoothly */ .mesh-container { filter: blur(40px); /* Heavy blur to blend the orbs into a mesh */ } /* Individual color orbs */ .mesh-orb { position: absolute; border-radius: 50%; animation: orb-drift 8s infinite alternate ease-in-out; } .mesh-orb.orb-1 { width: 60vw; height: 60vw; background: radial-gradient(circle, #fa9c7a, transparent 70%); top: -10%; left: -10%; animation-duration: 10s; } .mesh-orb.orb-2 { width: 50vw; height: 50vw; background: radial-gradient(circle, #e9edc9, transparent 70%); bottom: -10%; right: -10%; animation-delay: -2s; animation-duration: 8s; } .mesh-orb.orb-3 { width: 80vw; height: 80vw; background: radial-gradient(circle, #38618c, transparent 70%); top: 20%; left: 40%; animation-duration: 12s; animation-delay: -4s; } @keyframes orb-drift { 0% { transform: scale(1) translate(0, 0); } 50% { transform: scale(1.3) translate(20%, -20%); } 100% { transform: scale(0.8) translate(-15%, 25%); } } /* Overlay content */ .mesh-content { position: relative; z-index: 1; color: white; font-size: 3rem; font-weight: bold; text-shadow: 0 2px 4px rgba(0,0,0,0.3); } @media (prefers-reduced-motion: reduce) { .mesh-orb { animation: none; /* Stops the animated drift */ } } </style> <div class="mesh-container"> <div class="mesh-orb orb-1"></div> <div class="mesh-orb orb-2"></div> <div class="mesh-orb orb-3"></div> </div> <div class="mesh-content">Beautiful Backgrounds</div>