Skeleton
Pulsing placeholder shapes for loading content. Use __line for text, __circle for avatars, and __block for images or cards.
Text and shapes
index.htmlhtml
<div class="ln-skeleton">
<div class="ln-skeleton__circle" style="width: 48px"></div>
<div class="ln-skeleton__line" style="width: 80%"></div>
<div class="ln-skeleton__line" style="width: 60%"></div>
<div class="ln-skeleton__line" style="width: 70%"></div>
<div class="ln-skeleton__block" style="height: 120px"></div>
</div>Reference
| Class | Description | Responsive |
|---|---|---|
.ln-skeleton | Skeleton container with vertical gap | No |
.ln-skeleton__line | Text-line placeholder (24px) | No |
.ln-skeleton__block | Rectangular block placeholder | No |
.ln-skeleton__circle | Circular placeholder (avatar, icon) | No |
.ln-skeleton--text-body | Body text line height (24px) | No |
.ln-skeleton--text-sm | Small text line height (20px) | No |
.ln-skeleton--text-h2 | H2 line height (48px) | No |
.ln-skeleton--text-h3 | H3 line height (32px) | No |