React Sigmoids Sines Shaders
Psychedelic 2001 space odyssey effects with sigmoid functions and sine waves. Pure WebGL shaders for React with TypeScript and shadcn/ui—smooth GPU animations.
Building psychedelic effects?
Join our Discord community for help from other developers working with WebGL shaders.
Look, we've all tried to build psychedelic visual effects. You either end up with basic CSS animations that look nothing like proper mathematical trippy visuals or JavaScript calculations that can't handle complex iterative functions smoothly. This React component uses advanced WebGL shaders with sigmoid functions and sine wave iterations that actually runs at 60fps without melting your CPU.
Smooth sigmoids sines animation
Mesmerizing 2001 space odyssey-inspired psychedelic patterns that won't destroy your performance metrics:
Created by victor_shepardson in 2015-08-07
Built for React applications with TypeScript and Next.js in mind. The animation runs entirely on the GPU using WebGL shaders with mathematical sigmoid functions, iterative sine waves, and motion blur. Works seamlessly with shadcn/ui design systems.
Installation
npx shadcn@latest add https://www.shadcn.io/registry/sigmoids-sines-shaders.json
npx shadcn@latest add https://www.shadcn.io/registry/sigmoids-sines-shaders.json
pnpm dlx shadcn@latest add https://www.shadcn.io/registry/sigmoids-sines-shaders.json
bunx shadcn@latest add https://www.shadcn.io/registry/sigmoids-sines-shaders.json
Usage
import { SigmoidsSinesShaders } from "@/components/ui/sigmoids-sines-shaders";
export default function Hero() {
return (
<SigmoidsSinesShaders>
<div className="relative z-10">
<h1>Your content here</h1>
</div>
</SigmoidsSinesShaders>
);
}
Why most psychedelic implementations suck
Most developers try to animate trippy visuals with CSS transforms or basic particle systems. Bad idea. You're dealing with linear transformations that can't capture mathematical complexity, poor color transitions, and wondering why your React app feels sluggish. Some use canvas drawing with JavaScript trigonometry, which sounds smart until you realize you're computing iterative functions for every pixel on every frame.
This React component uses mathematical sigmoid activation functions with iterative sine wave calculations and built-in motion blur. The GPU handles everything using optimized mathematical operations with authentic psychedelic color generation. No JavaScript calculations, no approximations, just smooth 60fps mathematical visual chaos.
Features
- Zero JavaScript animation overhead - Pure WebGL mathematical functions run on GPU
- Sigmoid activation functions for smooth non-linear transformations
- Iterative sine wave calculations with phase modulation and stereo effects
- Built-in motion blur and anti-aliasing for cinematic quality
- TypeScript definitions for proper IDE support in React projects
- Customizable parameters with 4 props for complete control
- Performance optimization through efficient mathematical operations
- shadcn/ui compatible for consistent design systems
- Responsive design with automatic canvas resizing
API Reference
SigmoidsSinesShaders
Main container component for the sigmoids sines effect.
Prop | Type | Default | Description |
---|---|---|---|
speed | number | 1.0 | Animation speed multiplier (0.1 to 3.0) |
intensity | number | 1.0 | Color intensity and brightness (0.1 to 2.0) |
complexity | number | 1.0 | Mathematical complexity factor (0.5 to 2.0) |
stereoEffect | number | 1.0 | Stereo panning effect strength (0.0 to 2.0) |
className | string | - | Additional Tailwind CSS classes |
...props | HTMLAttributes<HTMLDivElement> | - | All standard div props |
Common gotchas
Animation not working: WebGL might not be supported in the browser. The component logs warnings when WebGL initialization fails. Check browser compatibility.
Performance issues on mobile: Some older phones struggle with complex iterative mathematical functions. Consider reducing complexity and intensity props for better performance.
Colors appear too intense: Lower the intensity
prop. Values around 0.7-0.8 work well for subtle psychedelic effects without overwhelming content.
Effect too chaotic: Reduce the complexity
prop for simpler patterns. Lower values (0.5-0.7) create more controlled mathematical patterns.
No stereo effect: Increase the stereoEffect
prop for more pronounced spatial panning. Values around 1.5-2.0 create stronger spatial effects.
You might also like
Explore other shader-based background components for React applications:
Plasma Shaders
Organic plasma effects with fluid WebGL animations
Cosmic Waves Shaders
Ethereal wave patterns with cosmic color palettes
Glitch Shaders
Digital glitch effects with data corruption aesthetics
Digital Tunnel Shaders
Futuristic tunnel effects with neon lighting
Matrix Shaders
Digital rain effects with cyberpunk styling
Aurora Shaders
Northern lights effects with realistic color gradients
Questions developers actually ask
React Sea Shaders
React 3D sea with GPU ocean simulation. Realistic ocean waves for Next.js with TypeScript and shadcn/ui—free code.
Simplex Truchet Weave Shaders
Complex toroidal weave patterns using simplex grid tessellation with random rendering order. Advanced mathematical pattern generation for sophisticated geometric visualizations.