Skip to content

Ghost Form

Minimalist form that appears almost invisible until interacted with

Ghost Form

by FreeCsStyles Dev's

ModernCSS
🌐
#ghost#minimal#invisible

Embed this component

Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/ghost.

<iframe src="/embed/ghost" sandbox="allow-scripts" loading="lazy" title="Ghost Form" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>

Implementation code

Copy the HTML and CSS for Ghost Form. The HTML and CSS variants are self-contained; framework variants assume that framework's project setup.

HTML
<form class="ghost-form">
  <div class="ghost-field">
    <input type="text" placeholder="Your name" class="ghost-input">
    <div class="ghost-line"></div>
  </div>
</form>
CSS
.ghost-form {
  padding: 2rem;
}
.ghost-field {
  position: relative;
  margin-bottom: 2rem;
}
.ghost-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: white;
  font-size: 1.1rem;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}
.ghost-input:focus {
  filter: none;
}
.ghost-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #a855f7, #06b6d4);
  transition: width 0.3s ease;
}

Topics

  • #ghost
  • #minimal
  • #invisible