Article with ragged lines
A kicker, a two-line headline, a byline, and paragraphs whose last lines run short. It pulses instead of shimmering.
The code
Plain HTML and CSS on your kit's variables. Put it next to tokens/variables.css from your kit's files and it draws in your look.
<div class="ukc-skeleton-article">
<article class="art" aria-busy="true">
<span class="sr" role="status">Loading article</span>
<div class="top" aria-hidden="true">
<span class="kicker"></span>
<span class="hl"></span><span class="hl h2"></span>
<div class="by"><span class="face"></span><span class="who"></span><span class="when"></span></div>
</div>
<div class="p" aria-hidden="true"><span></span><span class="w97"></span><span class="w99"></span><span class="w58"></span></div>
<div class="p" aria-hidden="true"><span class="w98"></span><span class="w94"></span><span class="w71"></span></div>
<div class="p" aria-hidden="true"><span></span><span class="w96"></span><span class="w99"></span><span class="w40"></span></div>
</article>
</div>
.ukc-skeleton-article { position: relative; font-family: var(--uk-font-body, system-ui, sans-serif); color: var(--uk-ink); font-size: 15px; line-height: 1.5;
--tint: color-mix(in srgb, var(--uk-accent) 12%, var(--uk-paper));
--tint-strong: color-mix(in srgb, var(--uk-accent) 22%, var(--uk-paper));
--accent-deep: color-mix(in srgb, var(--uk-accent) 72%, black);
--ink-soft: color-mix(in srgb, var(--uk-ink) 8%, var(--uk-paper));
--line-strong: color-mix(in srgb, var(--uk-ink) 32%, var(--uk-paper));
--danger-tint: color-mix(in srgb, var(--uk-danger) 12%, var(--uk-paper));
--high-tint: color-mix(in srgb, var(--uk-highlight) 28%, var(--uk-paper)); }
.ukc-skeleton-article *, .ukc-skeleton-article *::before, .ukc-skeleton-article *::after { box-sizing: border-box; }
.ukc-skeleton-article :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-skeleton-article :where(ul, ol) { padding: 0; list-style: none; }
.ukc-skeleton-article :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-skeleton-article :where(a) { color: inherit; }
.ukc-skeleton-article svg { flex: none; }
.ukc-skeleton-article .sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ukc-skeleton-article .art { --bar: color-mix(in srgb, var(--uk-ink) 11%, transparent); max-width: 460px; }
.ukc-skeleton-article .top, .ukc-skeleton-article .p { animation: ukc-skeleton-article-pulse calc(var(--uk-motion-duration, 180ms) * 7) var(--uk-motion-ease, ease-in-out) infinite alternate; }
.ukc-skeleton-article .p:nth-of-type(2) { animation-delay: 160ms; }
.ukc-skeleton-article .p:nth-of-type(3) { animation-delay: 320ms; }
.ukc-skeleton-article .p:nth-of-type(4) { animation-delay: 480ms; }
.ukc-skeleton-article .top span, .ukc-skeleton-article .p span { display: block; background: var(--bar); border-radius: var(--uk-radius-sm); }
.ukc-skeleton-article .kicker { width: 72px; height: 10px; margin-bottom: 16px; background: color-mix(in srgb, var(--uk-accent) 35%, transparent) !important; }
.ukc-skeleton-article .hl { height: 24px; margin-bottom: 10px; }
.ukc-skeleton-article .hl.h2 { width: 64%; }
.ukc-skeleton-article .by { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--uk-line); }
.ukc-skeleton-article .by .face { width: 26px; height: 26px; border-radius: 999px; }
.ukc-skeleton-article .by .who { width: 96px; height: 10px; }
.ukc-skeleton-article .by .when { width: 56px; height: 10px; opacity: 0.7; }
.ukc-skeleton-article .p { margin-top: 18px; }
.ukc-skeleton-article .p span { height: 9px; margin-bottom: 11px; }
.ukc-skeleton-article .w99 { width: 99%; }
.ukc-skeleton-article .w98 { width: 98%; }
.ukc-skeleton-article .w97 { width: 97%; }
.ukc-skeleton-article .w96 { width: 96%; }
.ukc-skeleton-article .w94 { width: 94%; }
.ukc-skeleton-article .w71 { width: 71%; }
.ukc-skeleton-article .w58 { width: 58%; }
.ukc-skeleton-article .w40 { width: 40%; }
@keyframes ukc-skeleton-article-pulse { from { opacity: 1; } to { opacity: 0.5; } }
@media (prefers-reduced-motion: reduce) { .ukc-skeleton-article .top, .ukc-skeleton-article .p { animation: none; } }
More skeletons
All 24- Loading messages
Today
Loading chartInvoiced by week
Last 12 weeks
- Loading profile
- Loading materials
- Loading job sheet
- Loading take 7