Skip to content

Skeleton Shimmer

A copy-paste skeletons component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

SkeletonsHTMLCSSany framework

Copy into your project

HTML
<!-- Skeleton Shimmer -->
<div class="nuda-skeleton-shimmer" role="status" aria-label="Loading content" aria-busy="true">
  <div class="nuda-skeleton-shimmer__line" style="width: 90%"></div>
  <div class="nuda-skeleton-shimmer__line" style="width: 75%"></div>
  <div class="nuda-skeleton-shimmer__line" style="width: 60%"></div>
</div>
CSS
/* Skeleton Shimmer
   Shimmer effect on placeholder text lines.
   Customize: --shimmer-base, --shimmer-highlight, --shimmer-line-height */

.nuda-skeleton-shimmer {
  --shimmer-base: rgba(255, 255, 255, 0.06);
  --shimmer-highlight: rgba(255, 255, 255, 0.12);
  --shimmer-line-height: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.nuda-skeleton-shimmer__line {
  height: var(--shimmer-line-height);
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    var(--shimmer-base) 25%,
    var(--shimmer-highlight) 50%,
    var(--shimmer-base) 75%
  );
  background-size: 200% 100%;
  animation: nuda-shimmer 1.5s ease-in-out infinite;
}

@keyframes nuda-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .nuda-skeleton-shimmer__line {
    animation: none;
    background: var(--shimmer-base);
  }
}

How to use Skeleton Shimmer

Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.

Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.

More skeletons components

← Browse all NudaUI components