Background
Vortex
Mesmerizing particle vortex effects with simplex noise algorithms. Perfect for React applications requiring dynamic swirling animations with Next.js integration and TypeScript support.
Powered by
Installation
npx shadcn@latest add https://www.shadcn.io/registry/vortex.json
npx shadcn@latest add https://www.shadcn.io/registry/vortex.json
pnpm dlx shadcn@latest add https://www.shadcn.io/registry/vortex.json
bunx shadcn@latest add https://www.shadcn.io/registry/vortex.json
Features
- Advanced particle system using simplex noise algorithms for natural, organic movement patterns
- Customizable parameters controlling particle count, speed, radius, color hue, and movement range
- High-performance rendering with Canvas API featuring glow effects and advanced compositing
- Responsive adaptation automatically adjusting to container size and window resize events
- Smooth 60fps animation using requestAnimationFrame for optimal performance across devices
- Content overlay support with proper z-index management for layered compositions
- TypeScript support with complete interface definitions for reliable integration
- Framer Motion integration providing smooth fade-in animations and motion controls
Examples
Full Screen Variant
Use Cases
This free open source React component works well for:
- Hero sections - Mesmerizing vortex effects for creative landing pages built with Next.js
- Loading screens - Hypnotic animations capturing attention during data processing using TypeScript
- Gaming interfaces - Dynamic particle effects for space games and sci-fi applications
- Art installations - Interactive visual experiences for galleries and creative showcases using shadcn/ui design
- Brand experiences - Unique swirling animations expressing innovation and creativity
- Portfolio headers - Eye-catching particle effects showcasing technical capabilities using Tailwind CSS
API Reference
Vortex
Prop | Type | Default | Description |
---|---|---|---|
particleCount | number | 700 | Number of particles to render in the vortex |
rangeY | number | 800 | Vertical range of particle movement |
baseHue | number | 220 | Base hue value for particle colors (0-360) |
rangeHue | number | 100 | Range of hue variation from base hue |
baseSpeed | number | 0.0 | Base speed of particle movement |
rangeSpeed | number | 1.5 | Range of speed variation from base speed |
baseRadius | number | 1 | Base radius of particles |
rangeRadius | number | 2 | Range of radius variation from base radius |
backgroundColor | string | "#000020" | Background color of the vortex canvas |
className | string | undefined | Additional CSS classes for the container |
Implementation Notes
- Component requires simplex-noise library for organic particle movement calculations
- Canvas rendering uses advanced compositing modes for glow and particle blending effects
- Particle system automatically adapts to container dimensions and window resize events
- Color system uses HSL values with configurable hue ranges for dynamic color variations
- Performance optimized using requestAnimationFrame and efficient canvas operations
- Framer Motion integration provides smooth component mounting and unmounting animations
- Compatible with shadcn/ui design system and supports content overlay with z-index management
- Simplex noise creates natural, organic movement patterns avoiding mechanical repetition
Squares
Interactive animated grid patterns with hover effects and directional movement. Perfect for React applications requiring geometric backgrounds with Next.js integration and TypeScript support.
Warp
Immersive 3D warp effects with animated light beams and perspective grids. Perfect for React applications requiring futuristic backgrounds with Next.js integration and TypeScript support.