Purple Nebula
🟢 CSS OnlyCosmic stellar nebula look with purple, indigo, and deep starlight nodes rotating majestically.
Responsive Horizontal Leaderboard
Slot ID: ca-pub-detail-below-preview
Interactive Settings
Medium Rectangle Block
Slot ID: ca-pub-detail-after-customization
Quick Copy Actions
Download File Packages
Keyboard Shortcuts
Responsive Horizontal Leaderboard
Slot ID: ca-pub-detail-before-related
More in Gradient
Loading Canvas Shader...
Animated Mesh Gradient
A gorgeous, fluid mesh gradient featuring soft colorful spheres blending into each other with organic movement.
Loading Canvas Shader...
Aurora Flow
An elegant recreation of the northern lights, showing soft waves of emerald green and violet drifting on a dark sky.
Loading Canvas Shader...
Sunset Gradient
A calming gradient transition mirroring a beautiful sunset, blending deep purples, fiery oranges, and golden yellows.
Purple Nebula - CSS-only Gradient background for React & Tailwind
Integrate the Purple Nebula directly into your website. This asset is rendered using pure CSS and HTML keyframes. It is optimized for zero layout-shifts and runs with high-performance hardware-accelerated processing.
⚡ Performance Specifications
- Render Mode: CSS-ONLY (CSS-only)
- Fluidity: Locked at 60fps dynamic loop
- Bundle Footprint: Zero external NPM dependencies
- SEO Indexing status: 100% Crawlable static semantic HTML
🛠️ Integration Capabilities
Our templates expose inline design tokens like --color-1 and --color-2 for infinite color palettes. This template is designed to fit inside hero elements, full-screen landing pages, and interactive presentation cards.
Technical Code Reference & Syntaxes for Googlebot & Crawlers
The snippets below display the direct, unminified source code utilized for rendering this background.
HTML & Inline CSS Snippet (Vanilla)
<!-- index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Purple Nebula</title>
<style>
html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
background: #09090b;
}
:root {
--speed: 25s;
}
.nebula-container {
position: relative;
width: 100%;
height: 100%;
background: #020205;
overflow: hidden;
}
.nebula-dust {
position: absolute;
width: 100%;
height: 100%;
mix-blend-mode: screen;
filter: blur(50px);
transform-origin: center;
}
.nebula-1 {
background: radial-gradient(circle at 40% 40%, #581c87 0%, transparent 60%);
animation: nebula-spin var(--speed) infinite linear;
}
.nebula-2 {
background: radial-gradient(circle at 60% 60%, #3b82f6 0%, transparent 55%);
animation: nebula-spin-reverse var(--speed) infinite linear;
}
@keyframes nebula-spin {
0% { transform: rotate(0deg) scale(1); }
50% { transform: rotate(180deg) scale(1.1); }
100% { transform: rotate(360deg) scale(1); }
}
@keyframes nebula-spin-reverse {
0% { transform: rotate(360deg) scale(1.1); }
50% { transform: rotate(180deg) scale(0.9); }
100% { transform: rotate(0deg) scale(1.1); }
}
</style>
</head>
<body>
<div class="nebula-container">
<div class="nebula-dust nebula-1"></div>
<div class="nebula-dust nebula-2"></div>
</div>
</body>
</html>React Component Wrapper (TSX)
import React from 'react';
export default function PurpleNebulaBackground() {
return (
<div
style={{ width: '100%', height: '100%', position: 'relative', overflow: 'hidden' }}
>
<style dangerouslySetInnerHTML={{ __html: `
:root {
--speed: 25s;
}
.nebula-container {
position: relative;
width: 100%;
height: 100%;
background: #020205;
overflow: hidden;
}
.nebula-dust {
position: absolute;
width: 100%;
height: 100%;
mix-blend-mode: screen;
filter: blur(50px);
transform-origin: center;
}
.nebula-1 {
background: radial-gradient(circle at 40% 40%, #581c87 0%, transparent 60%);
animation: nebula-spin var(--speed) infinite linear;
}
.nebula-2 {
background: radial-gradient(circle at 60% 60%, #3b82f6 0%, transparent 55%);
animation: nebula-spin-reverse var(--speed) infinite linear;
}
@keyframes nebula-spin {
0% { transform: rotate(0deg) scale(1); }
50% { transform: rotate(180deg) scale(1.1); }
100% { transform: rotate(360deg) scale(1); }
}
@keyframes nebula-spin-reverse {
0% { transform: rotate(360deg) scale(1.1); }
50% { transform: rotate(180deg) scale(0.9); }
100% { transform: rotate(0deg) scale(1.1); }
}
` }} />
{/* HTML Structure */}
<div
style={{ width: '100%', height: '100%' }}
dangerouslySetInnerHTML={{ __html: `
<div class="nebula-container">
<div class="nebula-dust nebula-1"></div>
<div class="nebula-dust nebula-2"></div>
</div>
` }}
/>
</div>
);
}Next.js App Router Component (use client)
'use client';
import React from 'react';
export default function PurpleNebulaBackground() {
return (
<div
className="w-full h-full relative overflow-hidden"
>
<style dangerouslySetInnerHTML={{ __html: `
:root {
--speed: 25s;
}
.nebula-container {
position: relative;
width: 100%;
height: 100%;
background: #020205;
overflow: hidden;
}
.nebula-dust {
position: absolute;
width: 100%;
height: 100%;
mix-blend-mode: screen;
filter: blur(50px);
transform-origin: center;
}
.nebula-1 {
background: radial-gradient(circle at 40% 40%, #581c87 0%, transparent 60%);
animation: nebula-spin var(--speed) infinite linear;
}
.nebula-2 {
background: radial-gradient(circle at 60% 60%, #3b82f6 0%, transparent 55%);
animation: nebula-spin-reverse var(--speed) infinite linear;
}
@keyframes nebula-spin {
0% { transform: rotate(0deg) scale(1); }
50% { transform: rotate(180deg) scale(1.1); }
100% { transform: rotate(360deg) scale(1); }
}
@keyframes nebula-spin-reverse {
0% { transform: rotate(360deg) scale(1.1); }
50% { transform: rotate(180deg) scale(0.9); }
100% { transform: rotate(0deg) scale(1.1); }
}
` }} />
{/* HTML Structure */}
<div
className="w-full h-full"
dangerouslySetInnerHTML={{ __html: `
<div class="nebula-container">
<div class="nebula-dust nebula-1"></div>
<div class="nebula-dust nebula-2"></div>
</div>
` }}
/>
</div>
);
}Raw CSS Stylesheet Snippet
:root {
--speed: 25s;
}
.nebula-container {
position: relative;
width: 100%;
height: 100%;
background: #020205;
overflow: hidden;
}
.nebula-dust {
position: absolute;
width: 100%;
height: 100%;
mix-blend-mode: screen;
filter: blur(50px);
transform-origin: center;
}
.nebula-1 {
background: radial-gradient(circle at 40% 40%, #581c87 0%, transparent 60%);
animation: nebula-spin var(--speed) infinite linear;
}
.nebula-2 {
background: radial-gradient(circle at 60% 60%, #3b82f6 0%, transparent 55%);
animation: nebula-spin-reverse var(--speed) infinite linear;
}
@keyframes nebula-spin {
0% { transform: rotate(0deg) scale(1); }
50% { transform: rotate(180deg) scale(1.1); }
100% { transform: rotate(360deg) scale(1); }
}
@keyframes nebula-spin-reverse {
0% { transform: rotate(360deg) scale(1.1); }
50% { transform: rotate(180deg) scale(0.9); }
100% { transform: rotate(0deg) scale(1.1); }
}