Aurora Mesh
Flowing aurora mesh with blurred emerald and zinc gradient orbs. Premium background inspired by Apple and Linear. React + Tailwind blur blobs with smooth CSS animation for modern SaaS marketing.
Dependencies
react
npm install react react-domexport function AuroraMeshBackground({ children }: { children?: React.ReactNode }) {
return (
<div className="relative min-h-screen overflow-hidden bg-zinc-950">
<div className="pointer-events-none absolute -left-1/4 top-0 h-[500px] w-[500px] rounded-full bg-emerald-500/30 blur-[120px] animate-[aurora_12s_ease-in-out_infinite]" aria-hidden />
<div className="pointer-events-none absolute -right-1/4 bottom-0 h-[400px] w-[400px] rounded-full bg-zinc-500/25 blur-[100px] animate-[aurora_15s_ease-in-out_infinite_2s]" aria-hidden />
<div className="pointer-events-none absolute left-1/3 top-1/2 h-[300px] w-[300px] rounded-full bg-teal-400/20 blur-[80px] animate-[aurora_10s_ease-in-out_infinite_1s]" aria-hidden />
<style>{`@keyframes aurora{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(20px,-30px) scale(1.08)}}`}</style>
{children && <div className="relative z-10">{children}</div>}
</div>
);
}
Please implement this code in the current project and add it to (Your Desired Section, e.g. homepage hero, pricing page, dashboard). Change the primary accent color to (YOUR HEX CODE COLOR, e.g. #6366F1).
Requirements:
- Use React + Tailwind CSS (match the project's existing setup)
- Install dependencies if needed: npm install react react-dom
- Keep the layout responsive on mobile and desktop
- Replace placeholder copy with content that fits the project
The UI code:
export function AuroraMeshBackground({ children }: { children?: React.ReactNode }) {
return (
<div className="relative min-h-screen overflow-hidden bg-zinc-950">
<div className="pointer-events-none absolute -left-1/4 top-0 h-[500px] w-[500px] rounded-full bg-emerald-500/30 blur-[120px] animate-[aurora_12s_ease-in-out_infinite]" aria-hidden />
<div className="pointer-events-none absolute -right-1/4 bottom-0 h-[400px] w-[400px] rounded-full bg-zinc-500/25 blur-[100px] animate-[aurora_15s_ease-in-out_infinite_2s]" aria-hidden />
<div className="pointer-events-none absolute left-1/3 top-1/2 h-[300px] w-[300px] rounded-full bg-teal-400/20 blur-[80px] animate-[aurora_10s_ease-in-out_infinite_1s]" aria-hidden />
<style>{`@keyframes aurora{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(20px,-30px) scale(1.08)}}`}</style>
{children && <div className="relative z-10">{children}</div>}
</div>
);
}
Replace (Your Desired Section) and (YOUR HEX CODE COLOR) before pasting into Cursor, Copilot, or ChatGPT.