Sparkles
Customizable sparkle particle effect with four particle shapes, four trigger modes, adjustable density, and interactive hover/click generation for premium experiences.
Pro features
What the Pro version adds to this component.
4 Particle Shapes
Star, circle, square, and diamond sparkles
4 Trigger Modes
Continuous, hover, click, or none
Interactive Sparkles
Generate sparkles on hover and click
Density Control
Low, medium, or high generation frequency
Custom Ranges
Fine-tune size, duration, and opacity ranges
Lightweight Runtime
Pure CSS keyframe animation with no extra dependencies
Installation
Install via CLI
npx @moontra/moonui-cli add sparklesUsage
Premium Experience
Elevate your interface with magical sparkles
Examples
Cosmic Galaxy Backdrop
Dense continuous star sparkles over a cosmic gradient
Diamond Treasure Chest
Luxury showcase using diamond-shaped sparkles
Golden Achievement Burst
Celebration sparkles generated on click (trigger="click")
Crypto Wealth Dashboard
Financial dashboard with continuous circle sparkles
VIP Membership Card
Exclusive membership card with diamond sparkles
Magical Loading State
Loading state with continuous circle sparkles
Interactive Game Achievement
Achievement unlock with hover-triggered sparkles (trigger="hover")
Premium Subscription Banner
Subtle low-density sparkles with a reduced opacity range