vibran

Line mask reveal on scroll

Portuguese name: Linhas que sobem com a rolagem

The headline is split along the lines where it actually wraps, and each line slides up from behind a mask, one after another, at the pace of the scroll. Scrolling back retracts the lines.

Preview of Line mask reveal on scroll running live
Copy the promptAdjust colors and speed

When to use it

For section headings of two to five lines in big type, mostly on brand, architecture and portfolio sites. Lines are computed from the current width, so they rebuild when a phone rotates. With data-modo="alternar" lines enter from the sides; with data-auto the reveal loops until the visitor scrolls.

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:

<h2 data-efeito="texto-linhas-rolagem" data-modo="alternar">Seu título em várias linhas</h2>

More text effects

All 27 text effects →