vibran

Nebula gradient

Also called: cosmic gradient

A nebula (cosmic) gradient: clouds of gas and dust drift slowly with twinkling stars; the colors come from five nebulae photographed by NASA, and the mouse shifts the scene slightly.

Preview of Nebula gradient running live
Copy the promptAdjust colors and speed

When to use it

Hero for tech products, AI, astronomy, education, night events and launches. data-paleta changes the whole mood: orion (pink and orange), pilares (brown and blue), carina (blue and orange), caranguejo (teal and red), olho-de-gato (green and magenta). White text on top.

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="nebulosa">
  <h1>Seu título</h1>
</section>

More backgrounds effects

All 43 backgrounds effects →