---
title: "Reveal"
description: "How content replaces the skeleton."
canonical_url: "https://kukson777.github.io/boneprint/docs/guide/reveal"
---
# Reveal

> How content replaces the skeleton.

<reveal-demo>



</reveal-demo>

## Modes

<table>
<thead>
  <tr>
    <th>
      Mode
    </th>
    
    <th>
      What happens
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        fade
      </code>
    </td>
    
    <td>
      the content crossfades over the skeleton, the default
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        sequence
      </code>
    </td>
    
    <td>
      each piece comes in where its skeleton was, top to bottom
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        sweep
      </code>
    </td>
    
    <td>
      the content is uncovered from left to right
    </td>
  </tr>
</tbody>
</table>

Set it on one skeleton, or for the whole app:

```vue
<Skeleton :of="posts" :sample reveal="sequence" />
```

<code-group>

```ts [nuxt.config.ts]
export default defineNuxtConfig({
  boneprint: { reveal: 'sequence' },
})
```

```ts [main.ts (Vue)]
app.use(boneprint, { reveal: 'sequence' })
```

</code-group>

With `prefers-reduced-motion`, every mode falls back to a plain swap.

## Fast responses

A response that lands within 150 ms never shows a skeleton. Whatever is on screen waits that long before giving way, so a fast request doesn't flash. Change the wait with the `--skeleton-hold` CSS variable.

## Images

Images never hold the content back. A photo still loading when the content appears keeps a pulsing placeholder in its box until it has loaded. Give images a `width` and `height`, or an `aspect-ratio`, so that box exists.


## Sitemap

See the full [sitemap](https://kukson777.github.io/boneprint/sitemap.md) for all pages.
