Pinatool

CSS Skeleton Loader Generator

Build realistic loading placeholders that match your actual user interface. Choose from card, article, profile, list, or table wireframes, tune shimmer effects and dimensions, and copy accessible HTML and CSS custom properties without JavaScript dependencies.

Choose Content Template

Select a placeholder wireframe layout

Live Skeleton Preview

Rendered with pure CSS animations matching your production export

Loading content...
Layout: Card (Shimmer Wave)Speed: 1.4s

Motion & Layout Controls

Animation Style
520px
4 rows
12px
1.4s
Base Placeholder Color
Shimmer Beam Highlight Color

Production Skeleton Code

Clean modular CSS with semantic aria-busy="true" HTML markup and reduced-motion suppression.

.skeleton {
  --skeleton-base: #e2e8f0;
  --skeleton-highlight: #f8fafc;
  --skeleton-radius: 12px;
  --skeleton-speed: 1.4s;
  width: min(100%, 520px);
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--skeleton-base) 75%, transparent);
  border-radius: calc(var(--skeleton-radius) + 4px);
  background: transparent;
}

.skeleton__block {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--skeleton-radius);
  background: var(--skeleton-base);
}

.skeleton--shimmer .skeleton__block::after {
  position: absolute;
  inset: 0;
  content: "";
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--skeleton-highlight), transparent);
  animation: skeleton-shimmer var(--skeleton-speed) ease-in-out infinite;
}

.skeleton--pulse .skeleton__block {
  animation: skeleton-pulse var(--skeleton-speed) ease-in-out infinite;
}

.skeleton__media { height: 180px; }
.skeleton__content { padding-top: 16px; }
.skeleton__heading { width: 72%; height: 28px; margin-bottom: 18px; }
.skeleton__byline { width: 34%; height: 14px; margin-bottom: 24px; }
.skeleton__title { width: 60%; height: 20px; margin-bottom: 14px; }
.skeleton__line { width: 100%; height: 13px; margin-top: 10px; }
.skeleton__line--short { width: 65%; }
.skeleton__profile, .skeleton__item { display: flex; align-items: center; gap: 14px; }
.skeleton__profile { margin-bottom: 22px; }
.skeleton__item { padding: 12px 0; border-bottom: 1px solid var(--skeleton-base); }
.skeleton__item:last-child { border-bottom: 0; }
.skeleton__avatar { width: 64px; height: 64px; flex: none; border-radius: 50%; }
.skeleton__thumbnail { width: 56px; height: 56px; flex: none; }
.skeleton__details { flex: 1; }
.skeleton__table-row { display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: 14px; padding: 12px 8px; border-bottom: 1px solid var(--skeleton-base); }
.skeleton__table-row--head { padding-top: 4px; font-weight: bold; }
.skeleton__cell { height: 14px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes skeleton-shimmer {
  100% { transform: translateX(100%); }
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton__block,
  .skeleton__block::after {
    animation: none !important;
  }
}

How It Works

1

Choose a Layout Template

Select a wireframe template matching your UI—cards with media, article headlines, avatar profiles, repeated list rows, or multi-column data tables.

2

Tune Dimensions & Motion

Adjust maximum width, row count, corner radius, and speed. Switch between shimmer beam waves, soft pulsing opacity, or static wireframes.

3

Copy Production Code

Copy accessible HTML marked with aria-busy="true" and modular CSS custom properties ready to insert into your web components.

CSS Skeleton Loader Generator Key Features

Zero Cumulative Layout Shift

Pre-allocates realistic layout heights and widths so your pages remain completely stable as asynchronous data completes.

CSS Custom Properties

Configured via CSS variables (--skeleton-base, --skeleton-highlight, --skeleton-speed) for effortless dark mode theming and component overrides.

Built-in Web Accessibility

Semantic role="status", aria-busy="true", and automatic prefers-reduced-motion animation suppression protect all users.

Frequently Asked Questions

What is a skeleton screen and why use it instead of a spinner?

A skeleton screen is a low-fidelity wireframe preview that mirrors the layout of content about to load. Unlike generic spinners that leave users guessing about layout bounds, skeletons reduce perceived load time and eliminate cumulative layout shifts (CLS) by reserving spatial dimensions.

How does the shimmer effect work in pure CSS?

The shimmer animation uses an absolutely-positioned ::after pseudo-element with a linear-gradient light beam. The gradient translates horizontally from -100% to +100% across overflow: hidden placeholder blocks using a continuous CSS keyframe loop.

Why is aria-busy="true" included in the generated HTML?

The aria-busy="true" attribute, along with role="status", alerts screen readers and assistive technology that a live region is actively awaiting content updates. It prevents premature announcements until actual content arrives.

How does prefers-reduced-motion handle skeleton screens?

Users who have enabled reduced motion at the system level receive static, non-animating placeholder blocks via @media (prefers-reduced-motion: reduce). The spatial layout remains preserved without causing motion discomfort or vertigo.

Can I customize the skeleton dimensions to match my actual UI components?

Yes. The generator provides granular sliders for max-width, row count, corner radius, and CSS custom variables (--skeleton-base, --skeleton-highlight, --skeleton-radius, --skeleton-speed) that can easily be overridden inside your application stylesheets.