All styles
Outline & Ghost

Curtain Down CSS Button

Free37 lines · no JS
Open in Studio
Theme

A real <button> carrying .btn-curtain-down — the preview is the stylesheet, not a picture of it.

States
default
hover
focus-visible
active
not declared
disabled
not declared
.btn-curtain-down {
  position: relative;
  z-index: 0;
  overflow: hidden;
  display: inline-block;
  padding: 12px 26px;
  border: 2px solid #8b5cf6;
  border-radius: 10px;
  background: transparent;
  color: #8b5cf6;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease;
}
.btn-curtain-down::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 8px;
  background: #8b5cf6;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}
.btn-curtain-down:hover {
  color: #ffffff;
}
.btn-curtain-down:hover::before {
  transform: scaleY(1);
}
.btn-curtain-down:focus-visible {
  outline: 2px solid #8b5cf6;
  outline-offset: 3px;
}
Self-contained · MIT · no build step.btn-curtain-down
Outline & GhostRoundedSlideHover Reveal

Implementation notes

About the Curtain Down CSS button

Curtain Down uses a lightweight treatment that keeps secondary actions visible. Its rounded corners balance product-friendly softness with a clear boundary. Its structure comes from a 2px border. The slide, hover reveal details are included in the copy-paste CSS.

Usage

<button class="btn-curtain-down">Button</button>

Pair it with the CSS tab above — the class is self-contained.

Before shipping: keep the semantic button element, verify contrast on your actual background and add a visible:focus-visible state. If you retain motion, include a prefers-reduced-motion override.
Built with
HTML + plain CSS
Shape
Rounded
Exports
CSS, Tailwind, React
License
MIT · commercial use
Complete the look

Build the interface around this button

We matched its palette, surface, geometry and motion to a complete UI system — like composing an outfit, not browsing unrelated parts.

Style DNA · v1
How matching works →
Pro preview
Modal76% match

Midnight System Decision Modal

Midnight System kit

Dark UI characterblue palette
Unlock with Pro →
Free sample
Input76% match

Midnight System Smart Input

Midnight System kit

Dark UI characterblue palette
Pro preview
Toggle76% match

Midnight System Preference Toggle

Midnight System kit

Dark UI characterblue palette
Unlock with Pro →
Pro preview
Card76% match

Midnight System Feature Card

Midnight System kit

Dark UI characterblue palette
Unlock with Pro →
Pro preview
Dropdown76% match

Midnight System Action Menu

Midnight System kit

Dark UI characterblue palette
Unlock with Pro →
Pro preview
Form76% match

Midnight System Signup Form

Midnight System kit

Dark UI characterblue palette
Unlock with Pro →
Get the complete Midnight System kit
Six coordinated component types, commercial license and future kit updates.
Explore Pro · $39

More styles that match

Blueprint Trace

Bold Stroke

Dashed Craft

Double Frame

Ghost Accent

Ghost Slate

Two optional extras load only if you allow them. Every button, preview and line of code works exactly the same either way. What each one does