3D Celestial Particle Vortex
🔵 InteractiveMulti-layered depth-staggered star clusters rotating in opposing directions that shift with parallax 3D depth based on mouse coords.
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 3D Interactive
Loading Canvas Shader...
3D Isometric Block Flow
Floating translucent 3D isometric cubes drifting and spinning in a true three-dimensional viewport, tilting dynamically with the cursor.
Loading Canvas Shader...
3D Tunnel of Infinite Lines
An interactive, deep three-dimensional warp tunnel with glowing concentric lines that rotate and zoom towards the screen in real 3D parallax.
Loading Canvas Shader...
3D Glass Monolith
Dual premium, minimalist 3D frosted glass monoliths floating elegantly on the left and right in deep cosmic space. Features real-time symmetric tilting coordinates, fine wireframe details, and dynamic backdrop blurring.
3D Celestial Particle Vortex - CSS-only 3D Interactive background for React & Tailwind
Integrate the 3D Celestial Particle Vortex 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: INTERACTIVE (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>3D Celestial Particle Vortex</title>
<style>
html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
background: #09090b;
}
.celestial-vortex {
width: 100%;
height: 100%;
background: radial-gradient(circle at 50% 50%, #010d0a 0%, #000403 100%);
overflow: hidden;
position: relative;
perspective: 800px;
}
.star-vortex-wrap {
position: absolute;
width: 120%;
height: 120%;
left: -10%;
top: -10%;
transform-style: preserve-3d;
transform: rotateX(calc(var(--mouse-y, 0) * -15deg)) rotateY(calc(var(--mouse-x, 0) * 15deg));
transition: transform 0.15s ease-out;
}
.star-field-3d {
position: absolute;
inset: -150px;
transform-style: preserve-3d;
}
.sf-back {
transform: translateZ(-250px);
opacity: 0.35;
background-image: radial-gradient(var(--color-1, #00ffa3) 1.5px, transparent 1.5px);
background-size: 80px 80px;
animation: swirl-back 45s linear infinite;
}
.sf-mid {
transform: translateZ(0px);
opacity: 0.65;
background-image: radial-gradient(var(--color-2, #ffaa00) 2px, transparent 2px);
background-size: 130px 130px;
animation: swirl-mid 30s linear infinite;
}
.sf-front {
transform: translateZ(150px);
opacity: 0.9;
background-image: radial-gradient(#ffffff 2.5px, transparent 2.5px);
background-size: 180px 180px;
animation: swirl-front 22s linear infinite;
}
@keyframes swirl-back {
0% { transform: translateZ(-250px) rotate(0deg); }
100% { transform: translateZ(-250px) rotate(360deg); }
}
@keyframes swirl-mid {
0% { transform: translateZ(0px) rotate(360deg); }
100% { transform: translateZ(0px) rotate(0deg); }
}
@keyframes swirl-front {
0% { transform: translateZ(150px) rotate(0deg); }
100% { transform: translateZ(150px) rotate(360deg); }
}
</style>
</head>
<body>
<div class="celestial-vortex">
<div class="star-vortex-wrap">
<div class="star-field-3d sf-back"></div>
<div class="star-field-3d sf-mid"></div>
<div class="star-field-3d sf-front"></div>
</div>
</div>
<script>
// Throttled interactive cursor coordinates mapping
(function() {
document.documentElement.style.setProperty('--mouse-x', '0');
document.documentElement.style.setProperty('--mouse-y', '0');
let targetX = 0, targetY = 0;
let currentX = 0, currentY = 0;
window.addEventListener('mousemove', (e) => {
targetX = (e.clientX / window.innerWidth) - 0.5;
targetY = (e.clientY / window.innerHeight) - 0.5;
});
window.addEventListener('mouseleave', () => {
targetX = 0;
targetY = 0;
});
function update() {
currentX += (targetX - currentX) * 0.08;
currentY += (targetY - currentY) * 0.08;
document.documentElement.style.setProperty('--mouse-x', currentX.toFixed(4));
document.documentElement.style.setProperty('--mouse-y', currentY.toFixed(4));
requestAnimationFrame(update);
}
requestAnimationFrame(update);
})();
</script>
</body>
</html>React Component Wrapper (TSX)
import React, { useEffect, useRef } from 'react';
export default function 3DCelestialParticleVortexBackground() {
const containerRef = useRef<HTMLDivElement>(null);
useEffect(() => {
let targetX = 0, targetY = 0;
let currentX = 0, currentY = 0;
let frameId: number;
const handleMouseMove = (e: MouseEvent) => {
targetX = (e.clientX / window.innerWidth) - 0.5;
targetY = (e.clientY / window.innerHeight) - 0.5;
};
const handleMouseLeave = () => {
targetX = 0;
targetY = 0;
};
window.addEventListener('mousemove', handleMouseMove);
window.addEventListener('mouseleave', handleMouseLeave);
const updateCoordinates = () => {
currentX += (targetX - currentX) * 0.08;
currentY += (targetY - currentY) * 0.08;
if (containerRef.current) {
containerRef.current.style.setProperty('--mouse-x', currentX.toFixed(4));
containerRef.current.style.setProperty('--mouse-y', currentY.toFixed(4));
}
frameId = requestAnimationFrame(updateCoordinates);
};
frameId = requestAnimationFrame(updateCoordinates);
return () => {
window.removeEventListener('mousemove', handleMouseMove);
window.removeEventListener('mouseleave', handleMouseLeave);
cancelAnimationFrame(frameId);
};
}, []);
return (
<div
ref={containerRef}
style={{ width: '100%', height: '100%', position: 'relative', overflow: 'hidden' }}
>
<style dangerouslySetInnerHTML={{ __html: `
.celestial-vortex {
width: 100%;
height: 100%;
background: radial-gradient(circle at 50% 50%, #010d0a 0%, #000403 100%);
overflow: hidden;
position: relative;
perspective: 800px;
}
.star-vortex-wrap {
position: absolute;
width: 120%;
height: 120%;
left: -10%;
top: -10%;
transform-style: preserve-3d;
transform: rotateX(calc(var(--mouse-y, 0) * -15deg)) rotateY(calc(var(--mouse-x, 0) * 15deg));
transition: transform 0.15s ease-out;
}
.star-field-3d {
position: absolute;
inset: -150px;
transform-style: preserve-3d;
}
.sf-back {
transform: translateZ(-250px);
opacity: 0.35;
background-image: radial-gradient(var(--color-1, #00ffa3) 1.5px, transparent 1.5px);
background-size: 80px 80px;
animation: swirl-back 45s linear infinite;
}
.sf-mid {
transform: translateZ(0px);
opacity: 0.65;
background-image: radial-gradient(var(--color-2, #ffaa00) 2px, transparent 2px);
background-size: 130px 130px;
animation: swirl-mid 30s linear infinite;
}
.sf-front {
transform: translateZ(150px);
opacity: 0.9;
background-image: radial-gradient(#ffffff 2.5px, transparent 2.5px);
background-size: 180px 180px;
animation: swirl-front 22s linear infinite;
}
@keyframes swirl-back {
0% { transform: translateZ(-250px) rotate(0deg); }
100% { transform: translateZ(-250px) rotate(360deg); }
}
@keyframes swirl-mid {
0% { transform: translateZ(0px) rotate(360deg); }
100% { transform: translateZ(0px) rotate(0deg); }
}
@keyframes swirl-front {
0% { transform: translateZ(150px) rotate(0deg); }
100% { transform: translateZ(150px) rotate(360deg); }
}
` }} />
{/* HTML Structure */}
<div
style={{ width: '100%', height: '100%' }}
dangerouslySetInnerHTML={{ __html: `
<div class="celestial-vortex">
<div class="star-vortex-wrap">
<div class="star-field-3d sf-back"></div>
<div class="star-field-3d sf-mid"></div>
<div class="star-field-3d sf-front"></div>
</div>
</div>
` }}
/>
</div>
);
}Next.js App Router Component (use client)
'use client';
import React, { useEffect, useRef } from 'react';
export default function 3DCelestialParticleVortexBackground() {
const containerRef = useRef<HTMLDivElement>(null);
useEffect(() => {
let targetX = 0, targetY = 0;
let currentX = 0, currentY = 0;
let frameId: number;
const handleMouseMove = (e: MouseEvent) => {
targetX = (e.clientX / window.innerWidth) - 0.5;
targetY = (e.clientY / window.innerHeight) - 0.5;
};
const handleMouseLeave = () => {
targetX = 0;
targetY = 0;
};
window.addEventListener('mousemove', handleMouseMove);
window.addEventListener('mouseleave', handleMouseLeave);
const updateCoordinates = () => {
currentX += (targetX - currentX) * 0.08;
currentY += (targetY - currentY) * 0.08;
if (containerRef.current) {
containerRef.current.style.setProperty('--mouse-x', currentX.toFixed(4));
containerRef.current.style.setProperty('--mouse-y', currentY.toFixed(4));
}
frameId = requestAnimationFrame(updateCoordinates);
};
frameId = requestAnimationFrame(updateCoordinates);
return () => {
window.removeEventListener('mousemove', handleMouseMove);
window.removeEventListener('mouseleave', handleMouseLeave);
cancelAnimationFrame(frameId);
};
}, []);
return (
<div
ref={containerRef}
className="w-full h-full relative overflow-hidden"
>
<style dangerouslySetInnerHTML={{ __html: `
.celestial-vortex {
width: 100%;
height: 100%;
background: radial-gradient(circle at 50% 50%, #010d0a 0%, #000403 100%);
overflow: hidden;
position: relative;
perspective: 800px;
}
.star-vortex-wrap {
position: absolute;
width: 120%;
height: 120%;
left: -10%;
top: -10%;
transform-style: preserve-3d;
transform: rotateX(calc(var(--mouse-y, 0) * -15deg)) rotateY(calc(var(--mouse-x, 0) * 15deg));
transition: transform 0.15s ease-out;
}
.star-field-3d {
position: absolute;
inset: -150px;
transform-style: preserve-3d;
}
.sf-back {
transform: translateZ(-250px);
opacity: 0.35;
background-image: radial-gradient(var(--color-1, #00ffa3) 1.5px, transparent 1.5px);
background-size: 80px 80px;
animation: swirl-back 45s linear infinite;
}
.sf-mid {
transform: translateZ(0px);
opacity: 0.65;
background-image: radial-gradient(var(--color-2, #ffaa00) 2px, transparent 2px);
background-size: 130px 130px;
animation: swirl-mid 30s linear infinite;
}
.sf-front {
transform: translateZ(150px);
opacity: 0.9;
background-image: radial-gradient(#ffffff 2.5px, transparent 2.5px);
background-size: 180px 180px;
animation: swirl-front 22s linear infinite;
}
@keyframes swirl-back {
0% { transform: translateZ(-250px) rotate(0deg); }
100% { transform: translateZ(-250px) rotate(360deg); }
}
@keyframes swirl-mid {
0% { transform: translateZ(0px) rotate(360deg); }
100% { transform: translateZ(0px) rotate(0deg); }
}
@keyframes swirl-front {
0% { transform: translateZ(150px) rotate(0deg); }
100% { transform: translateZ(150px) rotate(360deg); }
}
` }} />
{/* HTML Structure */}
<div
className="w-full h-full"
dangerouslySetInnerHTML={{ __html: `
<div class="celestial-vortex">
<div class="star-vortex-wrap">
<div class="star-field-3d sf-back"></div>
<div class="star-field-3d sf-mid"></div>
<div class="star-field-3d sf-front"></div>
</div>
</div>
` }}
/>
</div>
);
}Raw CSS Stylesheet Snippet
.celestial-vortex {
width: 100%;
height: 100%;
background: radial-gradient(circle at 50% 50%, #010d0a 0%, #000403 100%);
overflow: hidden;
position: relative;
perspective: 800px;
}
.star-vortex-wrap {
position: absolute;
width: 120%;
height: 120%;
left: -10%;
top: -10%;
transform-style: preserve-3d;
transform: rotateX(calc(var(--mouse-y, 0) * -15deg)) rotateY(calc(var(--mouse-x, 0) * 15deg));
transition: transform 0.15s ease-out;
}
.star-field-3d {
position: absolute;
inset: -150px;
transform-style: preserve-3d;
}
.sf-back {
transform: translateZ(-250px);
opacity: 0.35;
background-image: radial-gradient(var(--color-1, #00ffa3) 1.5px, transparent 1.5px);
background-size: 80px 80px;
animation: swirl-back 45s linear infinite;
}
.sf-mid {
transform: translateZ(0px);
opacity: 0.65;
background-image: radial-gradient(var(--color-2, #ffaa00) 2px, transparent 2px);
background-size: 130px 130px;
animation: swirl-mid 30s linear infinite;
}
.sf-front {
transform: translateZ(150px);
opacity: 0.9;
background-image: radial-gradient(#ffffff 2.5px, transparent 2.5px);
background-size: 180px 180px;
animation: swirl-front 22s linear infinite;
}
@keyframes swirl-back {
0% { transform: translateZ(-250px) rotate(0deg); }
100% { transform: translateZ(-250px) rotate(360deg); }
}
@keyframes swirl-mid {
0% { transform: translateZ(0px) rotate(360deg); }
100% { transform: translateZ(0px) rotate(0deg); }
}
@keyframes swirl-front {
0% { transform: translateZ(150px) rotate(0deg); }
100% { transform: translateZ(150px) rotate(360deg); }
}