Skip to content
Added 2 Sept 2026
Back to library
drop-zone-overlay-15725
Drop Zone Overlay
Modals & Overlays

Drop Zone Overlay

Attachment list that blurs behind a dashed upload veil when files are dragged over it, the veil scaling up around a bobbing arrow and its size limits.

Modals & Overlaysuploaddropzonedashedoverlayfiles
lines of CSS
67lines of CSS
dependencies
0dependencies
browser, for years
Everybrowser, for years
stops under reduced motion
Guardedstops under reduced motion
Backdrop
Drop files to uploadPNG, PDF up to 10 MB
Open a live copy in

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

drop-zone-overlay-15725.css
.fx-v14-mo-dropzone-15724 {
  position: relative;
  width: 238px;
  height: 114px;
  padding: 10px;
  background: #111a2c;
  border: 1px solid #253049;
  border-radius: 0.7rem;
  overflow: hidden;
}
.fx-v14-mo-dropzone-15724 .ls { transition: filter 0.3s ease, opacity 0.3s ease; }
.fx-v14-mo-dropzone-15724 .ls b { display: block; margin-bottom: 0.4rem; font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; color: #64748b; }
.fx-v14-mo-dropzone-15724 .ls a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.24rem 0.3rem;
  font-size: 0.68rem;
  color: #cbd5e1;
  border-radius: 0.3rem;
}
.fx-v14-mo-dropzone-15724 .ls a:nth-child(even) { background: #16203a; }
.fx-v14-mo-dropzone-15724 .ls i { flex: none; width: 14px; height: 16px; border-radius: 2px; }
.fx-v14-mo-dropzone-15724 .ls .p { background: #ef4444; }
.fx-v14-mo-dropzone-15724 .ls .i { background: #38bdf8; }
.fx-v14-mo-dropzone-15724 .ls .z { background: #fbbf24; }
.fx-v14-mo-dropzone-15724 .ls em { margin-left: auto; font-style: normal; font-size: 0.58rem; color: #64748b; }
.fx-v14-mo-dropzone-15724 .dz {
  position: absolute;
  inset: 6px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2px;
  text-align: center;
  color: #7dd3fc;
  background: rgba(9,16,31,0.88);
  border: 2px dashed #38bdf8;
  border-radius: 0.55rem;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.fx-v14-mo-dropzone-15724 .dz svg { animation: fx-v14-mo-dropzone-15724-bob 1.5s ease-in-out infinite; }
.fx-v14-mo-dropzone-15724 .dz b { margin-top: 3px; font-size: 0.74rem; color: #e0f2fe; }
.fx-v14-mo-dropzone-15724 .dz small { font-size: 0.6rem; color: #64748b; }
.fx-v14-mo-dropzone-15724:hover .ls { filter: blur(1.5px); opacity: 0.5; }
.fx-v14-mo-dropzone-15724:hover .dz { opacity: 1; transform: scale(1); }
@keyframes fx-v14-mo-dropzone-15724-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .fx-v14-mo-dropzone-15724,
  .fx-v14-mo-dropzone-15724::before,
  .fx-v14-mo-dropzone-15724::after,
  .fx-v14-mo-dropzone-15724 *,
  .fx-v14-mo-dropzone-15724 *::before,
  .fx-v14-mo-dropzone-15724 *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
}
drop-zone-overlay-15725.html
<div class="fx-v14-mo-dropzone-15724">
  <div class="ls">
    <b>Attachments · 3</b>
    <a><i class="p"></i>proposal.pdf<em>240 KB</em></a>
    <a><i class="i"></i>hero-shot.png<em>1.8 MB</em></a>
    <a><i class="z"></i>assets.zip<em>12 MB</em></a>
  </div>
  <div class="dz">
    <svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
      <path d="M12 16V4"></path>
      <path d="M7 9l5-5 5 5"></path>
      <path d="M4 16v3a1 1 0 001 1h14a1 1 0 001-1v-3"></path>
    </svg>
    <b>Drop files to upload</b>
    <small>PNG, PDF up to 10 MB</small>
  </div>
</div>

What do I do with this?

  1. Put drop-zone-overlay-15725.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-v14-mo-dropzone-15724">. 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 drop-zone-overlay-15725

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 drop-zone-overlay-15725

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

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 Drop Zone Overlay

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