vibran

Galaxy

Portuguese name: Galáxia

A galaxy of eighteen thousand stars in three spiral arms, with the core spinning faster than the edges. The mouse tilts the disk.

Preview of Galaxy running live
Copy the promptAdjust colors and speed

When to use it

A top-of-page piece for astronomy, science, games, events or products that sell scale. It renders thousands of stars in WebGL and is one of the heavier backgrounds; lower data-qualidade on modest devices. Set data-cores for the core, arms and tips, and keep the headline off the core, which is the brightest part.

How to add it to your site

  1. Copy the prompt in the gallery. It comes with the effect's name and the full code. The prompt text is written in Portuguese, and AI builders handle that fine.
  2. Paste it into your AI: Lovable, Claude, Cursor, Bolt or v0.
  3. Done: the AI adds the effect to your project, just like you saw it here.

Use it in HTML

The effect is plain JavaScript, no library. Just put the data-efeito attribute on the element:

<section data-efeito="galaxia">...</section>

More backgrounds effects

All 43 backgrounds effects →