Skip to content
Backgrounds43 / 118

Galaxy Drift

Fly through the stars toward the Milky Way. A real photograph of the galaxy band hangs at infinity behind a true 3D volume of stars: you cruise slowly forward, near stars streaming past bigger and faster while far ones barely move, under a fine grain of distant stars that twinkle over the galaxy. It moves like space, not like a spring: scrolling is thrust, so keep scrolling and you keep flying deeper, the stars streaking with your speed; stop and you coast, easing back to a slow cruise, and scroll back to fly backward. The cursor steers your view so every star shifts by its real depth, and it is a telescope that magnifies and exposes the sky deeper. A click is a warp burst with a spray of shooting stars, and on load you arrive at speed and slow to a cruise.

WebGL2Real photo3D star flightScroll to flyReal bloomGSAPReduced-motion safe
Scroll to fly deeperClick to warp

Tweak

LIVE

Sky

1.00
1.00
1.00
6

Flight

1.00
1.00
1.00
0.60

Interactive

Scroll to fly, steer with the cursor, click to warp

Props

14 props
  • imagestring
    The galaxy photo, at infinity behind the stars (a star-free photo works best).default "/backgrounds/galaxy-drift/galaxy.jpg"
  • starsnumber
    How many stars, 0 to 2.default 1
  • twinklenumber
    How much the distant stars twinkle.default 1
  • cruisenumber
    Speed of the slow idle cruise through the stars.default 1
  • thrustnumber
    How hard scrolling thrusts you forward.default 1
  • meteorsnumber
    Shooting stars per minute on their own (0 for none).default 6
  • telescopenumber
    Strength of the telescope under the cursor.default 1
  • exposurenumber
    Brightness of the galaxy band.default 1
  • glownumber
    Strength of the bloom on the stars.default 0.6
  • backgroundstring
    Shown while the photo loads.default "#030304"
  • interactiveboolean
    Steering, telescope, click warp, scroll flight.default true
  • scrollerElement | null
    Scroll container, if the page does not scroll the window.
  • childrenReactNode
    Foreground content, drawn above the sky.
  • classNamestring
    Size it, e.g. h-screen w-full.