Skip to content
Added 17 Aug 2026
Back to library
flip-avatar-15157
Flip Avatar
Avatars & Images

Flip Avatar

Circular avatar showing initials that flips over in 3D on hover to reveal the name and role on its back.

Avatars & Imagesflip3davatarrevealname
lines of CSS
38lines of CSS
dependencies
0dependencies
browser, for years
Everybrowser, for years
motion only on interaction
Hovermotion only on interaction
Backdrop
MKMiaDesign
Open a live copy in

Vue, Svelte, styled-components and Tailwind exports are part of Pro. HTML, CSS and React are free forever.

flip-avatar-15157.css
.fx-v12-av-flip-15156 {
  width: 84px;
  height: 84px;
  perspective: 500px;
}
.fx-v12-av-flip-15156 .in {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.fx-v12-av-flip-15156 .f,
.fx-v12-av-flip-15156 .b {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  backface-visibility: hidden;
  color: #fff;
  font-weight: 800;
}
.fx-v12-av-flip-15156 .f {
  font-size: 1.5rem;
  background: linear-gradient(135deg, #d946ef, #86198f);
}
.fx-v12-av-flip-15156 .b {
  font-size: 0.95rem;
  background: #4a044e;
  border: 2px solid #d946ef;
  transform: rotateY(180deg);
}
.fx-v12-av-flip-15156 .b small { font-size: 0.65rem; font-weight: 500; color: #f0abfc; }
.fx-v12-av-flip-15156:hover .in { transform: rotateY(180deg); }
flip-avatar-15157.html
<div class="fx-v12-av-flip-15156">
  <span class="in">
    <span class="f">MK</span>
    <span class="b">Mia<small>Design</small></span>
  </span>
</div>

What do I do with this?

  1. Put flip-avatar-15157.css anywhere your page already loads CSS from — in Next.js that is app/globals.css, or any stylesheet with a <link> in your HTML.
  2. Then put the class on the element you want it on: <button class="fx-v12-av-flip-15156">. The CSS does nothing until a class name in it matches something on the page.
  • Link the stylesheet, then paste the markup wherever you need it.
npx hoverlab add flip-avatar-15157

What's included

  • The markup and the stylesheet, in whichever framework you pick
  • No runtime dependencies

Works with

  • React
  • Vue
  • Svelte
  • Tailwind
  • styled-components
  • Plain CSS

npx hoverlab add flip-avatar-15157

Or over MCP, from your editor's agent — no account needed.

License

Free to read, copy and install, for personal and non-commercial projects. Shipping it in client work or a paid product needs Pro ($79 once). The source lands in your repo and stops being ours — no attribution, nothing to upgrade.

Was this useful?

Motion safety

Static estimate, read from the CSS

Reduced motion
Brief motion, no guard

Animates briefly or on interaction. Only looping motion gets a guard in this catalog; copy the one from the Insights tab if this ships on a critical path.

What it animates
Compositor only

Only transform, opacity or filter: the GPU can run it without re-laying-out or repainting the page.

Flashing (WCAG 2.3.1)
No flashing found

No repeating change in opacity, colour or brightness large enough to count as a flash.

Layout shift (CLS)
No shift expected

Nothing it animates moves or resizes the box in flow. A category from the CSS, not a measurement for this effect.

Every row is read from the shipped CSS. Only a figure marked measured came from a browser. Customizing the speed changes the timing, so recheck a customized copy. How it is computed

31 more effects in Avatars & Images

All of them free to read, copy and install — no account, no locked tiles, no watermarked preview. The whole catalog is open, and so are the API and the CLI.

Browse Avatars & Images

Shipping one commercially

Copying the code is free. Putting it in client work or a paid product is what Pro is for — the licence, not the access.

  • A commercial licence for everything in the catalog
  • Unlimited bundle exports, in Vue, Svelte and Tailwind
  • One payment — no subscription, nothing to renew
Pro — $79 once

7 variations of Flip Avatar

Finished looks, each one a position in the customizer above. Copy any of them, or open it and keep moving the sliders.