Feedback · Component Template
Skeleton Loading Screen
CSS-only animated loading placeholders with shimmer gradients, no JavaScript. Copy the prompt, paste it, ship it.
Live demo
Click the preview to toggle between the skeleton and the loaded state.
The Prompt
Build a skeleton loading screen. Match my project's existing stack, conventions, and design tokens. If there are none, output a single HTML file with inline CSS and zero dependencies. No JavaScript is needed for the animation. VISUAL DESIGN - Dark background (#0a0a0a) with skeleton elements in a slightly lighter tone (#1a1a1a) - Animated shimmer: a linear gradient sweep moving left to right across each element Gradient stops: transparent, rgba(255,255,255,0.04), rgba(255,255,255,0.08), rgba(255,255,255,0.04), transparent Background-size: 200% 100%, animated via background-position from -200% to 200% Timing: 1.8s ease-in-out infinite - Rounded corners: 8px for rectangular shapes, 50% for circular avatars - No visible borders on skeleton elements — rely on background contrast only LAYOUT PATTERNS (build all three in one page) 1. Profile Header - 56px circular avatar placeholder on the left - Two text lines to the right: name line (40% width, 14px tall) and bio line (65% width, 11px tall) - 12px vertical gap between lines 2. Card Grid - 3-column responsive grid (collapses to 1 column below 640px) - Each card: 16:9 aspect-ratio image placeholder on top, then 3 text lines below - Text line widths: 100%, 80%, 50% (staggered to look natural) - 14px card padding, 12px border-radius - Subtle card border: 1px solid rgba(255,255,255,0.06) 3. Content List - 4 rows, each with: 40px circular avatar, then two text lines (55% and 35% width) - 14px vertical padding per row - 1px separator between rows at rgba(255,255,255,0.06) CSS ARCHITECTURE - Single @keyframes animation using background-position - Shared .skeleton class applies the base background color - Shimmer gradient on a ::after pseudo-element so it doesn't interfere with layout - Shape modifiers: .skeleton--circle, .skeleton--text, .skeleton--text-sm, .skeleton--image - CSS custom properties for all colors and timing: --skeleton-base, --skeleton-shimmer, --skeleton-speed - Use these properties so the theme is switchable by changing 2-3 values ACCESSIBILITY - prefers-reduced-motion media query that disables the shimmer animation - aria-hidden="true" on individual skeleton elements - aria-busy="true" on the skeleton container OUTPUT - Dark theme default, adaptable to light theme by overriding the custom properties - Clean, composable class system
- CopyThe full prompt, one click.
- PasteInto Cursor, Claude Code, or any agent.
- CompareAgainst the live demo above.