DevPlatform
Home
Components
Search
Submit
Earn
Login
Sign Up Free
Gradient Border Input - 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
Gradient Border Input
abhishek001
Jan 25, 2026
6
0
Share
Live Preview
Refresh
Live Editor
HTML
CSS
JS
HTML
CSS
JavaScript
1
<div class="container"> <div class="gradient-wrapper"> <input type="text" class="gradient-input" placeholder="Type here..."> </div> </div>
1
* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', sans-serif; background: #1a1a1a; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; } .container { width: 100%; max-width: 400px; } .gradient-wrapper { position: relative; padding: 3px; background: linear-gradient(90deg, #ff6ec4, #7873f5, #4facfe, #43e97b); background-size: 300% 300%; border-radius: 15px; animation: gradient-rotate 3s ease infinite; } @keyframes gradient-rotate { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } } .gradient-input { width: 100%; padding: 1.25rem 1.5rem; font-size: 1.05rem; color: #fff; background: #1a1a1a; border: none; border-radius: 12px; outline: none; } .gradient-input::placeholder { color: rgba(255, 255, 255, 0.4); } @media (max-width: 768px) { .gradient-input { font-size: 1rem; padding: 1rem 1.25rem; } }
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!