Gradient Border
Vibrant form with animated gradient border
Gradient Border
by FreeCsStyles Dev's
ModernCSS
🌐HTML/CSS
#gradient#colorful#border
Embed this component
Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/gradient-border.
<iframe src="/embed/gradient-border" sandbox="allow-scripts" loading="lazy" title="Gradient Border" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>Implementation code
Copy the HTML and CSS for Gradient Border. The HTML and CSS variants are self-contained; framework variants assume that framework's project setup.
HTML
<div class="gradient-border">
<input type="text" placeholder="Email" class="gradient-input">
</div>CSS
.gradient-border {
padding: 3px;
border-radius: 12px;
background: linear-gradient(45deg, #f093fb, #f5576c, #4facfe);
background-size: 300% 300%;
animation: gradientMove 3s ease infinite;
}
@keyframes gradientMove {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
.gradient-input {
width: 100%;
padding: 0.8rem 1.2rem;
border: none;
border-radius: 10px;
background: white;
}Topics
- #gradient
- #colorful
- #border