Skip to content

Skeleton

Skeleton loaders provide visual placeholders while content is loading.

<!-- Circle skeleton -->
<div class="af-skeleton af-skeleton-circle" style="width: 48px; height: 48px;">
</div>
<!-- Text skeleton -->
<div class="af-skeleton af-skeleton-text">
</div>
<div class="af-skeleton af-skeleton-text" style="width: 80%;">
</div>
  • Mark the loading region aria-busy="true" while skeletons are shown
  • Skeletons are decorative and should be aria-hidden="true"
  • af-skeleton-circle - Circular skeleton (for avatars, icons)
  • af-skeleton-text - Text line skeleton