DevPlatform
Home
Components
Search
Submit
Earn
Login
Sign Up Free
Glass Form - Preview | DevPlatform
DevPlatform
Categories
Accordion
Animation
Box Shadow
Button
Card
Footer
Form
Gallery
Hero Section
Inputs
Loader
Marquee
Modal
Modules
Navbar
Progress Bar
Radio Buttons
Search-Bar
Sections
Slider
Tab
Timeline
Toggle
Glass Form
admin1234
Jan 30, 2026
6
0
Share
Live Preview
Refresh
Live Editor
HTML
CSS
JS
HTML
CSS
JavaScript
1
<form class="form"> <div class="field"> <input type="text" required placeholder=" "> <label>Name</label> </div> <div class="field"> <input type="email" required placeholder=" "> <label>Email</label> </div> <button>Submit</button> </form>
1
body{ margin:0; height:100vh; display:flex; justify-content:center; align-items:center; background:radial-gradient(circle at top,#2563eb,#020617); font-family:system-ui,-apple-system,BlinkMacSystemFont,sans-serif; } .form{ width:300px; padding:30px; border-radius:22px; background:rgba(255,255,255,.15); backdrop-filter:blur(16px); box-shadow: 0 30px 80px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.35); } .field{ position:relative; margin-bottom:22px; } .field input{ width:100%; padding:16px 14px; border-radius:14px; border:none; outline:none; background:rgba(0,0,0,.35); color:#fff; font-size:16px; } .field label{ position:absolute; left:14px; top:50%; transform:translateY(-50%); color:rgba(255,255,255,.6); pointer-events:none; transition:.3s; } .field input:focus + label, .field input:not(:placeholder-shown) + label{ top:-8px; font-size:12px; color:#fff; background:#2563eb; padding:2px 8px; border-radius:999px; } button{ width:100%; padding:16px; border-radius:999px; border:none; background:#fff; color:#000; font-size:18px; font-weight:600; cursor:pointer; }
1
Comments
0
Want to comment?
Please
login
or
sign up
to post comments.
No comments yet
Be the first to comment on this component!
Comments 0
Want to comment?
Please login or sign up to post comments.
No comments yet
Be the first to comment on this component!