vibran

Diagonal page transition

Portuguese name: Transição diagonal com título

When you click an anchor link, two slanted bands sweep across the screen and show the name of the next section, the page jumps to it underneath, and the bands leave on the other side. Each link can have its own title and color.

Preview of Diagonal page transition running live
Copy the promptAdjust colors and speed

When to use it

On one-page sites with an anchor menu, where jumping between sections feels too abrupt. It suits brands with strong personality and works best with 3 to 6 sections. Use a different color per destination so people feel they moved somewhere. The page stays accessible: focus lands on the section and the title is announced.

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:

<div data-efeito="transicao-diagonal">
  <nav>
    <a href="#cardapio" data-titulo="Cardápio">Cardápio</a>
    <a href="#endereco" data-titulo="Onde fica" data-cor="#8a3b12">Onde fica</a>
  </nav>
  <section id="cardapio">...</section>
  <section id="endereco">...</section>
</div>

More screen effects

All 7 screen effects →