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.

Loading component...

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

Loading component...

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

PropTypeDefaultDescription
particleCountnumber700Number of particles to render in the vortex
rangeYnumber800Vertical range of particle movement
baseHuenumber220Base hue value for particle colors (0-360)
rangeHuenumber100Range of hue variation from base hue
baseSpeednumber0.0Base speed of particle movement
rangeSpeednumber1.5Range of speed variation from base speed
baseRadiusnumber1Base radius of particles
rangeRadiusnumber2Range of radius variation from base radius
backgroundColorstring"#000020"Background color of the vortex canvas
classNamestringundefinedAdditional 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