vibran

Skeleton with spotlight

Portuguese name: Esqueleto com lanterna

The gray blocks that hold the place of content get a light that follows the mouse and lights up only the part nearby. On a phone the light sweeps the list on its own. When the content arrives, the blocks turn into the real content.

Preview of Skeleton with spotlight running live
Copy the promptAdjust colors and speed

When to use it

Product lists, profiles, feeds and dashboards waiting on an API. Mark each piece that is still loading with data-bloco and give it the size the content will have, so the page doesn't jump when the data arrives. When it does, add data-pronto to the container. aria-busy is handled by the effect.

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="esqueleto-lanterna">
  <div data-bloco style="height:160px"><img src="jarra.jpg" alt="Jarra de barro negro"></div>
  <h3 data-bloco style="width:70%">Jarra com asa trançada</h3>
</div>
<!-- quando os dados chegarem: -->
<script>document.querySelector("[data-efeito=esqueleto-lanterna]").setAttribute("data-pronto", "")</script>

More loaders effects

All 27 loaders effects →