CSS Skeleton Profile

A profile card placeholder with cover, avatar, name and buttons that gently pulses its opacity.

  • placeholder
  • pulse
  • avatar
  • cover
  • user card
HTML
<div class="skel-profile" role="status" aria-label="Loading profile">
  <div class="skel-profile-cover"></div>
  <div class="skel-profile-avatar"></div>
  <div class="skel-profile-name"></div>
  <div class="skel-profile-bio"></div>
  <div class="skel-profile-actions"><span></span><span></span></div>
</div>
CSS
.skel-profile {
  width: min(100%, 250px);
  padding-bottom: 18px;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 10px #0f172a12;
  animation: skel-profile-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.skel-profile-cover {
  height: 56px;
  background: #e2e8f0;
}

.skel-profile-avatar {
  width: 64px;
  height: 64px;
  margin: -32px auto 0;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #cbd5e1;
}

.skel-profile-name,
.skel-profile-bio,
.skel-profile-actions span {
  border-radius: 999px;
  background: #e2e8f0;
}

.skel-profile-name {
  width: 50%;
  height: 14px;
  margin: 12px auto 8px;
}

.skel-profile-bio {
  width: 72%;
  height: 10px;
  margin: 0 auto 16px;
}

.skel-profile-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.skel-profile-actions span {
  width: 80px;
  height: 30px;
}

@keyframes skel-profile-pulse {
  50% { opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
  .skel-profile { animation: none; }
}

About this CSS Skeleton Profile

This CSS Skeleton Profile is 61 lines of pure CSS (1.0 KB) with no JavaScript and no dependencies. It uses keyframe animations, box shadows, Flexbox and reduced-motion support. It works in current versions of Chrome, Edge, Safari and Firefox. It works in any stack: plain HTML, React, Vue, Svelte, Astro, WordPress or Webflow.

CSS features used

Customize it

The colors in this snippet. Search and replace them to match your brand:

  • #fff
  • #0f172a12
  • #e2e8f0
  • #cbd5e1

How to use this skeleton profile

  1. Copy the HTML and paste it where you want the element to appear.
  2. Copy the CSS into your stylesheet, or inside a <style> tag.
  3. Keep the .skel-profile class name, or rename it in both places. Then tweak colors, sizes and timing to match your design.
  4. Using React or Next.js? Change class to className in the HTML. The CSS works as is, including in Tailwind projects (put it in your global stylesheet).

Building with an AI tool?

“Copy for AI” copies a short prompt for Cursor, Claude Code, Lovable, Bolt or v0. Your AI tool opens the Markdown version of this snippet and reads the HTML, CSS and setup notes there. If your tool can't open links, with the code instead. More ways to use copy CSS with AI.

Feedback