Stardust

Floating particle noise with moving speckles creating a cosmic stardust effect.

Main Features of Stardust

How to Use Stardust in Next.js

Installation Guide for Stardust

Props

Customize the component with these props

PropertyTypeDefaultDescription
backgroundColor
string#0f172aBackground color
gradientFrom
string#1e293bGradient start color
gradientTo
string#0f172aGradient end color
baseNoiseOpacity
number0.1Base noise opacity
baseNoiseBaseFrequency
string0.8Base noise frequency
baseNoiseOctaves
number3Base noise octaves
layer1Opacity
number0.15First layer opacity
layer1BaseFrequency
string1.2First layer frequency
layer1Octaves
number3First layer octaves
layer1ColorMatrix
string1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 1 0First layer color matrix
layer1BackgroundSize
string200px 200pxFirst layer background size
layer1Duration
number20First layer animation duration
layer2Opacity
number0.1Second layer opacity
layer2BaseFrequency
string0.6Second layer frequency
layer2Octaves
number3Second layer octaves
layer2ColorMatrix
string1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 1 0Second layer color matrix
layer2BackgroundSize
string150px 150pxSecond layer background size
layer2Duration
number15Second layer animation duration
text
stringStardustText label
className
stringAdditional CSS classes

When to Use

Excellent for space-themed projects, premium night modes, and Next.js applications that want a serene, cosmic aesthetic. Use this React component for a multi-layered stardust effect with floating particles and deep cosmic gradients.

Best Practices

Maintain consistent spacing within your design system by using this as a thematic backdrop for immersive sections. Follow React best practices by pairing it with white or silver typography. Optimize for performance by adjusting the `layer1Duration` and `layer2Duration` to prevent overlapping animation overhead.

Why This Component Matters in Modern UI Development

Cosmic visuals create a sense of wonder and unlimited potential. This production-ready component helpsคุณ build an interface that feels vast and atmospheric, improving user retention through a calm, high-quality visual experience.

Frequently Asked Questions

QHow many layers of stars are there?

There are two primary animation layers (`layer1` and `layer2`) that move at different speeds to create a sense of 3D depth and parallax.

QCan I change the star density?

Yes, you can adjust the `baseNoiseBaseFrequency` and layer frequencies to make the 'stars' appear smaller/denser or larger/sparser.

QIs it high-performance?

Yes, it uses hardware-accelerated CSS transforms for the moving layers, ensuring smooth 60fps movement even on high-resolution displays.

Stardust - React Noise Texture & Grain Effects | Uilora