vibran

Parallax scroll

Portuguese name: Parallax na rolagem

Parallax scroll: layers of the section move at different speeds as the page scrolls, which creates a sense of depth.

Preview of Parallax scroll running live
Copy the promptAdjust colors and speed

When to use it

Adds depth to photo sections: a restaurant facade, a guesthouse landscape, a product in layers. High speeds make the image slide too far and expose its edges. Keep data-velocidade values small, and set data-zoom="sim" on background images.

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="parallax"><img src="fundo.jpg" alt="" data-velocidade="-0.3"><h2 data-velocidade="0.2">Título</h2></section>

More scroll effects

All 5 scroll effects →