11 cutting-edge animated backgrounds featuring WebGL shaders, neural networks, raymarching, fluid simulation, volumetric lighting, 3D depth layers, and advanced particle systems - all integrated with your NextGenXplorer theme.
Tech: WebGL Shaders, Mouse Interaction, Scroll Effects Best for: Hero sections, immersive landing pages
import { NeuralVortexBackground } from "@/components/ui/neural-vortex-background";
<div className="relative h-screen">
<NeuralVortexBackground
speed={0.001}
interactive={true}
/>
<div className="relative z-10">Your content</div>
</div>Features:
- ๐ง Neural network shader algorithm
- ๐ฑ๏ธ Real-time mouse interaction
- ๐ Scroll-reactive colors
- ๐จ Auto-theme color adaptation
Props:
primaryColor- [R, G, B] in 0-1 range (default: theme orange)secondaryColor- Secondary color blendtertiaryColor- Tertiary color accentspeed- Animation speed (default: 0.001)interactive- Mouse interaction (default: true)
Theme Colors:
- Light: Orange + Cyan + Purple
- Dark: Orange + Deep Cyan + Deep Purple
Tech: WebGL2, Advanced Particle Shader, GPU Acceleration Best for: Tech showcases, modern SaaS pages
import { NeutrinoShaderBackground } from "@/components/ui/neutrino-shader-background";
<div className="relative h-screen">
<NeutrinoShaderBackground
intensity={1.0}
speed={1.0}
/>
<div className="relative z-10">Your content</div>
</div>Features:
- โ๏ธ Advanced particle simulation shader
- ๐จ Theme-reactive color system
- ๐จ Customizable speed and intensity
- ๐ฅ GPU-accelerated rendering
Props:
intensity- Effect strength (default: 1.0)speed- Animation speed multiplier (default: 1.0)className- Additional CSS classes
Theme Colors:
- Uses 3-color gradient system
- Orange โ Amber โ Light Yellow
Tech: Framer Motion, 3D Transforms, Layered Depth Best for: About pages, portfolio sections
import { GeometricDepthBackground } from "@/components/ui/geometric-depth-background";
<GeometricDepthBackground>
<div className="container mx-auto py-20">
{/* Your content with depth background */}
</div>
</GeometricDepthBackground>Features:
- ๐จ 5 floating geometric shapes
- ๐ Smooth wave animations
- ๐ Glass morphism effects
- ๐ Perspective depth layers
Props:
children- Content to overlayprimaryColor- Main color overrideaccentColors- Array of gradient colorsclassName- Additional styles
Default Colors:
- Orange/Amber/Yellow gradient variations
- Auto-adjusts opacity for light/dark mode
Tech: WebGL, Fluid Simulation, Polar Coordinates Best for: Dynamic hero sections, creative portfolios
import { FluidSwirlShader } from "@/components/ui/fluid-swirl-shader";
<div className="relative h-screen">
<FluidSwirlShader
intensity={0.36}
speed={1.0}
/>
<div className="relative z-10">Your content</div>
</div>Features:
- ๐ Real-time fluid dynamics simulation
- ๐ Swirl effect with polar coordinate transformations
- ๐จ 5-iteration fluid simulation loop
- ๐ฑ Touch-enabled for mobile interaction
Props:
intensity- Effect strength (default: 0.36)speed- Animation speed (default: 1.0)className- Additional CSS classes
Theme Colors:
- Orange โ Amber โ Yellow gradient system
- Smooth color transitions based on simulation
Tech: WebGL, Raymarching, Distance Fields, 3D Fractals Best for: Tech showcases, futuristic landing pages
import { NeonRaymarcherBackground } from "@/components/ui/neon-raymarcher-background";
<div className="relative h-screen">
<NeonRaymarcherBackground intensity={1.2} />
<div className="relative z-10">Your content</div>
</div>Features:
- ๐ฎ Real-time 3D fractal rendering (Menger Sponge)
- ๐ Raymarching with distance fields
- ๐ Fresnel effects and dynamic lighting
- ๐ฑ๏ธ Mouse-controlled camera movement
Props:
intensity- Light intensity (default: 1.2)className- Additional CSS classes
Technical Details:
- 100 raymarching steps for precision
- Rotating 3D elements with orbital motion
- Shadow casting and diffuse lighting
- Theme-integrated orange/amber/yellow palette
Tech: WebGL, God Rays, Volumetric Lighting, FBM Noise Best for: Atmospheric scenes, dramatic hero sections
import { VolumetricBeamsBackground } from "@/components/ui/volumetric-beams-background";
<div className="relative h-screen">
<VolumetricBeamsBackground
intensity={0.8}
beamCount={50}
/>
<div className="relative z-10">Your content</div>
</div>Features:
- โ๏ธ God rays / Crepuscular rays effect
- ๐จ Volumetric fog and atmospheric effects
- โจ Animated dust particles in light beams
- ๐ญ Multiple light sources with blending
Props:
intensity- Light beam strength (default: 0.8)beamCount- Number of ray samples (default: 50)className- Additional CSS classes
Technical Details:
- Fractal Brownian Motion (FBM) for volumetric patterns
- 3D volumetric beam calculations
- Mouse-reactive light source positioning
- Smooth lerp-based mouse tracking
Tech: WebGL, 3D Particles, Matrix Transformations, Life Cycles Best for: Space themes, dynamic backgrounds, interactive experiences
import { AdvancedParticleField } from "@/components/ui/advanced-particle-field";
<div className="relative h-screen">
<AdvancedParticleField particleCount={2000} />
<div className="relative z-10">Your content</div>
</div>Features:
- โญ 2000+ particles with individual life cycles
- ๐ฅ Orbital camera with smooth rotation
- ๐ฏ Mouse attraction/repulsion physics
- ๐ซ Size attenuation based on distance
Props:
particleCount- Number of particles (default: 2000)className- Additional CSS classes
Technical Details:
- Spherical particle distribution
- Perspective projection with matrix math
- Per-particle velocity and size attributes
- Pulsing glow effects with fresnel-like shading
Wavy 3D grid with traveling light particles
Smooth animated gradient waves
3D floating particle system
Interactive mouse-reactive dots
(See BACKGROUND_GUIDE.md for details on these)
Replace your layout background in layout.tsx:43:
// Remove this:
<div className="absolute top-0 left-0 w-full h-full bg-background bg-[linear-gradient(...)] z-[-1]"></div>
// Add this:
<NeuralVortexBackground className="z-[-1]" />// Homepage hero
<section className="relative h-screen">
<NeuralVortexBackground />
<div className="relative z-10">Hero content</div>
</section>
// About section
<GeometricDepthBackground>
<div className="container">About content</div>
</GeometricDepthBackground>
// Tech showcase
<section className="relative h-screen">
<NeutrinoShaderBackground intensity={1.2} />
<div className="relative z-10">Showcase</div>
</section>// src/app/page.tsx
<NeuralVortexBackground />
// src/app/about/page.tsx
<GeometricDepthBackground />
// src/app/products/page.tsx
<NeutrinoShaderBackground /><NeuralVortexBackground
primaryColor={[1.0, 0.58, 0.0]} // Orange RGB (0-1)
secondaryColor={[0.0, 0.7, 0.9]} // Cyan
tertiaryColor={[0.5, 0.0, 0.6]} // Purple
speed={0.0015}
interactive={true}
/><GeometricDepthBackground
accentColors={[
"from-orange-500/[0.15]",
"from-red-500/[0.15]",
"from-amber-500/[0.12]",
]}
/>All backgrounds automatically adapt to your theme:
import { useTheme } from "next-themes";
const { theme } = useTheme();
// Colors auto-adjust based on theme state
<NeuralVortexBackground /> // โ
Auto-adapts
<NeutrinoShaderBackground /> // โ
Auto-adapts
<GeometricDepthBackground /> // โ
Auto-adaptsUltra Tier:
- WebGL or WebGL2 support required
- Modern browsers (Chrome 56+, Firefox 51+, Safari 15+)
- GPU acceleration recommended
Advanced Tier:
- Canvas 2D support (all modern browsers)
- Hardware acceleration beneficial
- One Background Per Page - Don't stack multiple WebGL backgrounds
- Adjust for Mobile:
import { useBreakpoint } from "@/hooks/use-breakpoint";
const { isMobile } = useBreakpoint();
{isMobile ? (
<AnimatedGridBackground /> // Lighter option
) : (
<NeuralVortexBackground /> // Full experience
)}- Reduce Intensity on Low-End Devices:
<NeutrinoShaderBackground
intensity={isMobile ? 0.5 : 1.0}
speed={isMobile ? 0.5 : 1.0}
/>- Conditional Loading:
{process.env.NODE_ENV === 'production' && <NeuralVortexBackground />}- Mouse Movement: Creates vortex distortion around cursor
- Scroll: Changes color blend ratios
- Touch: Mobile-friendly touch tracking
<NeuralVortexBackground
interactive={false} // Disables mouse/touch
/>| Background | Tech | GPU | Interactive | Theme | Complexity |
|---|---|---|---|---|---|
| Neural Vortex | WebGL | โ | โ | โ | Ultra |
| Neutrino Shader | WebGL2 | โ | โ | โ | Ultra |
| Geometric Depth | Framer | โ | โ | โ | Ultra |
| Fluid Swirl | WebGL | โ | โ | โ | Ultra |
| Neon Raymarcher | WebGL | โ | โ | โ | Ultra |
| Volumetric Beams | WebGL | โ | โ | โ | Ultra |
| Particle Field | WebGL | โ | โ | โ | Ultra |
| Animated Grid | Canvas | โ | โ | โ | Advanced |
| Gradient Wave | SVG | โ | โ | โ | Advanced |
| Particle | Canvas | โ | โ | โ | Advanced |
| Pulsar Grid | Canvas | โ | โ | โ | Advanced |
Visit the interactive demo:
npm run devNavigate to: http://localhost:9002/background-demo
Switch between all 11 backgrounds in real-time!
// Add fallback detection
useEffect(() => {
const canvas = document.createElement('canvas');
const gl = canvas.getContext('webgl') || canvas.getContext('webgl2');
if (!gl) {
console.warn('WebGL not supported, using fallback');
// Use Canvas-based background instead
}
}, []);- Reduce
intensityprop to 0.5-0.7 - Lower
speedto 0.5 - Use Advanced-tier backgrounds on mobile
- Disable
interactivemode
- Ensure
ThemeProviderwraps your app - Check
next-themesis installed - Verify
useTheme()hook availability
- Try the demo:
npm run devโ/background-demo - Choose your background: Based on page purpose and performance needs
- Integrate: Add to
layout.tsxor specific pages - Customize: Adjust colors, speed, intensity
- Test: Verify performance across devices
Homepage Hero:
<NeuralVortexBackground speed={0.001} interactive={true} />About/Team Page:
<GeometricDepthBackground />Product Showcase:
<NeutrinoShaderBackground intensity={1.2} speed={1.0} />Creative Portfolio:
<FluidSwirlShader intensity={0.4} speed={0.8} />Tech/Gaming Landing:
<NeonRaymarcherBackground intensity={1.3} />Dramatic Hero:
<VolumetricBeamsBackground intensity={1.0} beamCount={60} />Interactive Experience:
<AdvancedParticleField particleCount={3000} />Blog/Content:
<AnimatedGridBackground gridSize={40} />All 11 backgrounds are production-ready, fully responsive, and optimized for your NextGenXplorer theme! ๐
- Technique: Polar coordinate transformations + fluid dynamics
- Best For: Dynamic, flowing hero sections
- Performance: Excellent on modern GPUs
- Unique Feature: 5-iteration fluid simulation with spin effects
- Technique: Raymarching with distance fields (Menger Sponge fractal)
- Best For: Futuristic tech showcases
- Performance: GPU-intensive, incredible visual quality
- Unique Feature: Real-time 3D fractals with shadow casting
- Technique: God rays + FBM noise + volumetric fog
- Best For: Atmospheric, dramatic scenes
- Performance: Moderate (adjustable beam count)
- Unique Feature: Multiple light sources with dust particles
- Technique: WebGL particles with 3D projection matrices
- Best For: Space themes, interactive experiences
- Performance: Excellent (2000+ particles at 60fps)
- Unique Feature: Life cycles, orbital camera, mouse physics