Skip to content

Upload Success

A copy-paste drag & drop component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

Drag & DropHTMLCSSany framework
Upload complete3 files · 2.4 MB

Copy into your project

HTML
<!-- Upload Success -->
<div class="nuda-upok">
  <div class="nuda-upok__circle">
    <svg viewBox="0 0 24 24" fill="none" stroke="currentColor"
         stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
      <path d="M5 12 L10 17 L20 7" />
    </svg>
    <span class="nuda-upok__ring"></span>
    <span class="nuda-upok__ring nuda-upok__ring--b"></span>
  </div>
  <span class="nuda-upok__label">Upload complete</span>
  <span class="nuda-upok__sub">3 files · 2.4 MB</span>
</div>
CSS
/* Upload Success
   Pop-in check with two expanding rings; label + sub fade up after.
   Customize: --uk-color */

.nuda-upok {
  --uk-color: #e4ff54;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  width: 100%;
  max-width: 200px;
}

.nuda-upok__circle {
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--uk-color);
  color: #09090b;
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(228, 255, 84, 0.5);
  animation: nuda-uk-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nuda-upok__circle svg {
  width: 60%;
  height: 60%;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: nuda-uk-draw 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.25s forwards;
}

.nuda-upok__ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--uk-color);
  border-radius: 50%;
  opacity: 0;
  animation: nuda-uk-pulse 1.6s ease-out infinite;
}

.nuda-upok__ring--b { animation-delay: 0.6s; }

.nuda-upok__label {
  font: 700 0.875rem ui-sans-serif, system-ui, sans-serif;
  color: #fafafa;
  animation: nuda-uk-fade 0.4s ease 0.4s backwards;
}

.nuda-upok__sub {
  font: 500 0.7rem ui-sans-serif, system-ui, sans-serif;
  color: #a1a1aa;
  animation: nuda-uk-fade 0.4s ease 0.55s backwards;
}

@keyframes nuda-uk-pop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes nuda-uk-draw { to { stroke-dashoffset: 0; } }

@keyframes nuda-uk-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

@keyframes nuda-uk-fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .nuda-upok__circle,
  .nuda-upok__circle svg,
  .nuda-upok__ring,
  .nuda-upok__label,
  .nuda-upok__sub { animation: none; }
  .nuda-upok__circle svg { stroke-dashoffset: 0; }
}

How to use Upload Success

Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.

Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.

More drag & drop components

← Browse all NudaUI components