vibran

Focus mode

Also called: spotlight dim

Click a marked item and the screen dims so only that item stays lit, inside a rounded window that slides from one item to the next, with a short caption beside it. Click outside or press Esc to turn the dimming off. It can also tour the items on its own.

Preview of Focus mode running live
Copy the promptAdjust colors and speed

When to use it

A first-run hint in dashboards and apps, a product tour, help inside a long form, or a highlight on a field with an error. Write the caption as one short sentence saying what to do there. It works by keyboard: Tab reaches the items, Enter lights one and Esc clears it. With data-auto it shows the items by itself until someone clicks.

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="modo-foco" data-auto="3500">
  <button data-foco data-nota="Aqui você escolhe o período">Período</button>
  <div data-foco data-nota="Os pedidos novos chegam aqui">...</div>
</div>

More screen effects

All 7 screen effects →