Skip to content
Added 30 Aug 2026
Back to library
success-modal-15449
Success Modal
Modals & Overlays

Success Modal

Confirmation dialog centred on a green tick disc that keeps sending a soft halo outward, with a single dismiss action.

Modals & Overlayssuccessconfirmationtickhalodialog
lines of CSS
64lines of CSS
dependencies
0dependencies
browser, for years
Everybrowser, for years
stops under reduced motion
Guardedstops under reduced motion
Backdrop
Payment received

Your Pro licence is active.

Open a live copy in

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

success-modal-15449.css
.fx-v13-mo-success-15448 {
  width: 210px;
  padding: 0.85rem 0.9rem 0.8rem;
  text-align: center;
  background: #0f1a17;
  border: 1px solid #1f4038;
  border-radius: 0.8rem;
  box-shadow: 0 22px 46px rgba(0,0,0,0.55);
  color: #d1fae5;
}
.fx-v13-mo-success-15448 .k {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 0.5rem;
  color: #052e16;
  background: #34d399;
  border-radius: 50%;
}
.fx-v13-mo-success-15448 .k::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(52,211,153,0.5);
  animation: fx-v13-mo-success-15448-halo 2.4s ease-out infinite;
}
.fx-v13-mo-success-15448 b { display: block; font-size: 0.9rem; color: #a7f3d0; }
.fx-v13-mo-success-15448 p { margin: 0.25rem 0 0.6rem; font-size: 0.7rem; line-height: 1.4; color: #6ee7b7; }
.fx-v13-mo-success-15448 button {
  width: 100%;
  padding: 0.42rem 0;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  color: #052e16;
  background: #34d399;
  border: none;
  border-radius: 0.45rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.fx-v13-mo-success-15448 button:hover { background: #6ee7b7; }
@keyframes fx-v13-mo-success-15448-halo {
  0%       { transform: scale(0.85); opacity: 0.9; }
  70%,100% { transform: scale(1.35); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-v13-mo-success-15448,
  .fx-v13-mo-success-15448::before,
  .fx-v13-mo-success-15448::after,
  .fx-v13-mo-success-15448 *,
  .fx-v13-mo-success-15448 *::before,
  .fx-v13-mo-success-15448 *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
}
success-modal-15449.html
<div class="fx-v13-mo-success-15448">
  <div class="k">
    <svg viewBox="0 0 24 24" width="22" height="22" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
      <path d="M4 12.5l5 5L20 7"></path>
    </svg>
  </div>
  <b>Payment received</b>
  <p>Your Pro licence is active.</p>
  <button>Nice</button>
</div>

What do I do with this?

  1. Put success-modal-15449.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-v13-mo-success-15448">. 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 success-modal-15449

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 success-modal-15449

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
Guarded

Ships a prefers-reduced-motion block, so the loop settles into its end state for visitors who ask for less motion.

What it animates
Repaints

Animates background. No reflow, but the browser repaints every frame, which is fine for one element and costly across many.

Flashing (WCAG 2.3.1)
Under 3 flashes/s

Its brightest loop is about 0.4 a second. Estimated from duration, iterations and keyframes, not from rendered frames.

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

30 more effects in Modals & Overlays

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 Modals & Overlays

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 Success Modal

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