Skip to content

Shimmer Card

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

SkeletonsHTMLCSSany framework

Copy into your project

HTML
<div class="nuda-shimcard" aria-hidden="true">
  <span class="nuda-shimcard__media"></span>
  <span class="nuda-shimcard__line" style="width:80%"></span>
  <span class="nuda-shimcard__line" style="width:55%"></span>
  <div class="nuda-shimcard__foot">
    <span class="nuda-shimcard__pill"></span>
    <span class="nuda-shimcard__pill" style="width:40px"></span>
  </div>
</div>
CSS
/* Shimmer Card Skeleton
   Card placeholder with a single lime shimmer sweep passing over it.
   Customize: --shimcard-glow, --shimcard-block */

.nuda-shimcard {
  --shimcard-glow: rgba(228, 255, 84, 0.12);
  --shimcard-block: rgba(255, 255, 255, 0.06);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  width: 100%;
  max-width: 200px;
  overflow: hidden;
}

.nuda-shimcard__media { height: 96px; border-radius: 8px; background: var(--shimcard-block); }
.nuda-shimcard__line  { height: 10px; border-radius: 4px; background: var(--shimcard-block); }
.nuda-shimcard__foot  { display: flex; gap: 8px; margin-top: 2px; }
.nuda-shimcard__pill  { width: 56px; height: 14px; border-radius: 7px; background: var(--shimcard-block); }

.nuda-shimcard::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, var(--shimcard-glow) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: nuda-shimcard 1.6s ease-in-out infinite;
}

@keyframes nuda-shimcard {
  to { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .nuda-shimcard::after { animation: none; opacity: 0; }
}

How to use Shimmer Card

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