Loading
Loading
Loading
mobile footer

Build the Interaction Layer Your Website is Missing.

Browse All EffectsBrowse All EffectsBrowse All EffectsUpgrade to ProUpgrade to ProUpgrade to Pro

70+ effects free, forever. No credit card.

© 2026 Hyperiux. All Rights Reserved.

AI Component CatalogueHey AI, Learn About Us
Platform

Vault

  • Documentation
  • Pricing
  • Blog
  • Community
  • NPM
  • MCP

Categories

  • All Effects
  • WebGL
  • Text
  • Backgrounds
  • Buttons
  • Carousels
  • Scroll
  • Components
  • Navigation
  • Cursor
  • Transitions
  • Loaders

Documents

  • Introduction
  • Installation
  • CLI
  • Dependencies
  • License

Legal

  • License Agreement
  • Terms of Service
  • Privacy Policy
  • Refund Policy
Socials
  • Twitter / X
  • LinkedIn
  • GitHub
  • Instagram
Contact Us
  • hello@hyperiux.com
New effects, in your inbox

Every new drop, plus the occasional behind-the-scenes build. No spam. Unsubscribe anytime.

All Effects
Featured ComponentsText AnimationsAnimated BackgroundsAnimated ButtonsCarousel EffectsScroll EffectsCreative ComponentsNavigationsCursor EffectsTransitionsLoadersWebGL & 3D Effects
Templates
IntroductionInstallationCLIDependenciesLicense
PricingBlogGithubNPMMCP Doc
Loading
Home/effects/Milky Way

Milky Way

A WebGL starfield background that adds scale and atmospheric depth to AI, space-adjacent, developer-tool, and premium brand heroes.

Three.jsGSAPLucide-reactpostprocessing@react-three/drei@react-three/fiber@react-three/postprocessing
DemoDemoDemo

Tune the Real Props

Core Color
Accent Color
Outer Color
Background Color

Overview

Milky Way gives the hero scale without weight: a starfield as atmosphere, not spectacle.

Use it for AI, space-adjacent, developer-tool, and premium brand heroes that need atmosphere behind a short claim. The page job is scale: the field should make the statement feel larger without adding visual noise.

The production risk is needless particles. If a static starfield gives the same feeling, ship the still on lower tiers.


Usage Code

page
1import MilkyWay from "@/components/effects/milky-way"2 3const page = () => {4  return (5   <MilkyWay />6  )7}8 9export default page

Example Production Use Case

A satellite data startup can use Milky Way behind the hero of its homepage. A slowly rotating galaxy of stars and nebula sits behind a short claim about global coverage, and the field tilts gently with the cursor.

The outcome is scale. The statement feels larger without extra copy. The galaxy renders on desktop only, so give the hero its own still image for phones.


Best Used For

  • Hero sections where atmospheric scale matters more than direct interaction.
  • AI and technical launch pages where a controlled starfield supports the first claim.
  • Portfolio or campaign pages where the field is ambience, not content.

Not For

Not for low-power-first pages, dense content, dashboards, checkout, or routes where performance is the main conversion lever.


Performance Budget

Cap DPR at 1.0 on touch/mobile and up to 1.5 on mid-range desktop. Pause Milky Way offscreen and in hidden tabs, reduce postprocessing before shipping, and keep texture sizes controlled.


Accessibility and Mobile

Keep meaningful content in HTML outside the canvas. On mobile the component skips the scene and shows an "Open in desktop" message, so supply your own poster for phones.


Common Mistakes

  • Using particle density where a static starfield would carry the same atmosphere.
  • Making the starfield the only place the visual identity exists.
  • Leaving a continuous particle loop running below the fold.

Changelog

Add prefers-reduced-motion support
Initial release

API Reference

PropTypeDefaultDescription
particleSizenumber2Particle and nebula point size multiplier.
numberOfParticlesnumber80000Number of star particles in the galaxy.
coreColorstring#ffbb00Bright inner galaxy and starfield color.
accentColorstring#ffffffNebula and sparkle accent color.
outerColorstring#4400ffOuter arm and warm sparkle color.
backgroundColorstring#000114Canvas background color.
rotationnumber1.6How strongly the galaxy tilts with mouse movement.
mouseInfluencebooleantrueEnable cursor-driven galaxy tilt.
rotationSpeednumber0.9Speed the particles orbit around the galaxy centre.

Questions, Answered.

What GPU budget should Milky Way use on mobile and desktop?

A starfield's cost scales with particle count, so cap DPR at 1.0 on mobile and 1.5 on desktop and reduce the number of stars on smaller devices. Favor cheap point rendering over heavy per-particle shading. Confirm the field stays smooth on a phone before shipping.

What poster fallback should replace Milky Way when WebGL fails?

Use a static starfield image so the sense of scale survives without the live particles. The hero copy is HTML and reads regardless. A good still keeps the atmosphere intact.

How should Milky Way pause when offscreen or in a hidden tab?

Pause the particle animation when the canvas scrolls away or the tab is hidden, resuming on return. A drifting starfield left running in the background is needless GPU work. Use a visibility check with demand rendering.

Which content should stay outside the Milky Way canvas?

Headline, subhead, and CTA stay in the DOM over the field; the stars are ambience, not content. Don't place any message inside the rendered scene. Keep the CTA a real button.

When should I choose a static image instead of Milky Way?

Choose a static field when the motion is purely atmospheric, when targeting mobile, or when the page can't spare the GPU. If a still conveys the same scale, it's the efficient pick. Reserve the live starfield for heroes where the drift adds genuine mood.

Request a Custom Animation

Need a custom effect? Tell us what to create.

Related Effects

Explore All EffectsExplore All EffectsExplore All Effects
Fractal Glass
Three.js

Fractal Glass

WebGL

Progressive Bloom Valley
Pro
Three.jspostprocessing@react-three/drei

Progressive Bloom Valley

WebGL

Hero Banner Animated
Pro
GSAPThree.jsMotion

Hero Banner Animated

WebGL

Curved Plane
Pro
Three.js

Curved Plane

WebGL

Interactive Blur Reveal
WebGL Shader

Interactive Blur Reveal

WebGL