https://motioncanvas.online/preview/3d-celestial-particle-vortex
Scroll Down

Loading Canvas Shader...

Next-Gen Scroll Mechanics

Experience Beautiful Ambient Depth

This browser window is simulating a production webpage. As you scroll down, the ambient 3D Celestial Particle Vortex background dynamically zooms and pulls focus in real-time, creating beautiful, cinematic parallax depth.

Built for Ultra Performance

Modern web layouts require buttery-smooth animations. Our styles run completely on the GPU, avoiding CPU reflow and main-thread layout jank.

Focus Pull Parallax

Scroll depth controls blur intensity and lens scaling simultaneously to guide focus elegantly.

GPU-Accelerated

Uses hardware transforms and native filters, optimized for stable 120fps scrolling.

Highly Customizable

Adjust speed, maximum blur limit, zoom multipliers, and filters in real-time.

© 2026 MOTIONCANVAS. ALL RIGHTS RESERVED.ACTIVE BACKGROUND: 3D CELESTIAL PARTICLE VORTEX

3D Celestial Particle Vortex

🔵 Interactive

Multi-layered depth-staggered star clusters rotating in opposing directions that shift with parallax 3D depth based on mouse coords.

#3D#interactive#space#particles#starfield
Advertisement
Sponsor Advertisement
728 × 90 | Responsive Banner

Responsive Horizontal Leaderboard

Slot ID: ca-pub-detail-below-preview

Google AdSense Placeholder

Interactive Settings

Motion PresetsCustom Tuning
Animation Speed1.0x
Blur (Aesthetic diffusion)0px
Layer Opacity100%
Scale Zoom1.0x
Rotation Angle0°
#00ffa3
#ffaa00
Advertisement
Sponsor Advertisement
300 × 250 | Rectangle

Medium Rectangle Block

Slot ID: ca-pub-detail-after-customization

Google AdSense Placeholder

Quick Copy Actions

Download File Packages

Keyboard Shortcuts

Space Play/Pause
F Fullscreen
R Reset Slider
C Copy Code
Advertisement
Sponsor Advertisement
728 × 90 | Responsive Banner

Responsive Horizontal Leaderboard

Slot ID: ca-pub-detail-before-related

Google AdSense Placeholder

More in 3D Interactive

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); }
}