Notes
HTML
CSS
JS
Tools
Code Snippets
HTML Entity
About
Contact Us
Login and Signup form With Animated Neon Submit Button
HTML
CSS
JS
Output
HTML
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Login and Signup form With Animated Neon Submit Button</title> </head> <body> <div class="login-page"> <div class="form"> <form class="register-form" method="POST"> <h2>Register</h2> <input type="text" placeholder="Full Name *" autocomplete="off" required /> <input type="text" placeholder="Username *" autocomplete="off" required /> <input type="email" placeholder="Email *" autocomplete="off" required /> <input type="password" placeholder="Password *" autocomplete="off" required /> <a class="btn" href="#"> <span></span> <span></span> <span></span> <span></span> Create </a> <p class="message">Already registered? <a href="#">Sign In</a></p> </form> <form class="login-form" method="post"> <h2></i> Login</h2> <input type="text" placeholder="Username" autocomplete="off" required /> <input type="password" placeholder="Password" autocomplete="off" required /> <a class="btn" href="#"> <span></span> <span></span> <span></span> <span></span> Sign in </a> <p class="message">Not registered? <a href="#">Create an account</a></p> </form> </div> </div> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <script> $('.message a').click(function () { $('form').animate({ height: "toggle", opacity: "toggle" }, "slow"); }); </script> </body> </html>
Copied
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Login and Signup form With Animated Neon Submit Button</title> </head> <body> <div class="login-page"> <div class="form"> <form class="register-form" method="POST"> <h2>Register</h2> <input type="text" placeholder="Full Name *" autocomplete="off" required /> <input type="text" placeholder="Username *" autocomplete="off" required /> <input type="email" placeholder="Email *" autocomplete="off" required /> <input type="password" placeholder="Password *" autocomplete="off" required /> <a class="btn" href="#"> <span></span> <span></span> <span></span> <span></span> Create </a> <p class="message">Already registered? <a href="#">Sign In</a></p> </form> <form class="login-form" method="post"> <h2></i> Login</h2> <input type="text" placeholder="Username" autocomplete="off" required /> <input type="password" placeholder="Password" autocomplete="off" required /> <a class="btn" href="#"> <span></span> <span></span> <span></span> <span></span> Sign in </a> <p class="message">Not registered? <a href="#">Create an account</a></p> </form> </div> </div> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <script> $('.message a').click(function () { $('form').animate({ height: "toggle", opacity: "toggle" }, "slow"); }); </script> </body> </html>
CSS
@import url(https://fonts.googleapis.com/css?family=Poppins:300); html { height: 100%; } body{ margin:0; padding:0; font-family: sans-serif; background: #fff; display: flex; justify-content: center; align-items: center; } .login-page { max-width: 400px; width:100%; padding: 8% 0 0; margin: auto; } .form { position: relative; z-index: 1; text-align: center; position: absolute; top: 50%; left: 50%; max-width: 400px; width:100%; padding: 40px; transform: translate(-50%, -50%); background: rgb(8, 1, 37); box-sizing: border-box; box-shadow: 0 15px 25px rgba(0,0,0,.4); border-radius: 10px; } .form input { width: 100%; padding: 10px 0; font-size: 13px; color: #fff; margin-bottom: 30px; border: none; border-bottom: 1px solid #fff; outline: none; background: transparent; } h2{ color:white; } .form .message { margin: 15px 0 0; color: #b3b3b3; font-size: 12px; } .form .message a { color: #28b847; text-decoration: none; } .form .register-form { display: none; } .btn { position: relative; display: inline-block; padding: 10px 20px; color: #28b847; font-size: 16px; text-decoration: none; overflow: hidden; transition: .5s; margin-top: 15px; letter-spacing: 2px } .btn:hover { background: #28b847; color: #fff; border-radius: 5px; box-shadow: 0 0 5px #28b847, 0 0 25px #28b847, 0 0 50px #28b847, 0 0 100px #28b847; } .btn span { position: absolute; display: block; } .btn span:nth-child(1) { top: 0; left: -100%; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, #28b847); animation: btn-anim1 1s linear infinite; } @keyframes btn-anim1 { 0% { left: -100%; } 50%,100% { left: 100%; } } .btn span:nth-child(2) { top: -100%; right: 0; width: 2px; height: 100%; background: linear-gradient(180deg, transparent, #28b847); animation: btn-anim2 1s linear infinite; animation-delay: .25s } @keyframes btn-anim2 { 0% { top: -100%; } 50%,100% { top: 100%; } } .btn span:nth-child(3) { bottom: 0; right: -100%; width: 100%; height: 2px; background: linear-gradient(270deg, transparent, #28b847); animation: btn-anim3 1s linear infinite; animation-delay: .5s } @keyframes btn-anim3 { 0% { right: -100%; } 50%,100% { right: 100%; } } .btn span:nth-child(4) { bottom: -100%; left: 0; width: 2px; height: 100%; background: linear-gradient(360deg, transparent, #28b847); animation: btn-anim4 1s linear infinite; animation-delay: .75s } @keyframes btn-anim4 { 0% { bottom: -100%; } 50%,100% { bottom: 100%; } }
Copied
@import url(https://fonts.googleapis.com/css?family=Poppins:300); html { height: 100%; } body{ margin:0; padding:0; font-family: sans-serif; background: #fff; display: flex; justify-content: center; align-items: center; } .login-page { max-width: 400px; width:100%; padding: 8% 0 0; margin: auto; } .form { position: relative; z-index: 1; text-align: center; position: absolute; top: 50%; left: 50%; max-width: 400px; width:100%; padding: 40px; transform: translate(-50%, -50%); background: rgb(8, 1, 37); box-sizing: border-box; box-shadow: 0 15px 25px rgba(0,0,0,.4); border-radius: 10px; } .form input { width: 100%; padding: 10px 0; font-size: 13px; color: #fff; margin-bottom: 30px; border: none; border-bottom: 1px solid #fff; outline: none; background: transparent; } h2{ color:white; } .form .message { margin: 15px 0 0; color: #b3b3b3; font-size: 12px; } .form .message a { color: #28b847; text-decoration: none; } .form .register-form { display: none; } .btn { position: relative; display: inline-block; padding: 10px 20px; color: #28b847; font-size: 16px; text-decoration: none; overflow: hidden; transition: .5s; margin-top: 15px; letter-spacing: 2px } .btn:hover { background: #28b847; color: #fff; border-radius: 5px; box-shadow: 0 0 5px #28b847, 0 0 25px #28b847, 0 0 50px #28b847, 0 0 100px #28b847; } .btn span { position: absolute; display: block; } .btn span:nth-child(1) { top: 0; left: -100%; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, #28b847); animation: btn-anim1 1s linear infinite; } @keyframes btn-anim1 { 0% { left: -100%; } 50%,100% { left: 100%; } } .btn span:nth-child(2) { top: -100%; right: 0; width: 2px; height: 100%; background: linear-gradient(180deg, transparent, #28b847); animation: btn-anim2 1s linear infinite; animation-delay: .25s } @keyframes btn-anim2 { 0% { top: -100%; } 50%,100% { top: 100%; } } .btn span:nth-child(3) { bottom: 0; right: -100%; width: 100%; height: 2px; background: linear-gradient(270deg, transparent, #28b847); animation: btn-anim3 1s linear infinite; animation-delay: .5s } @keyframes btn-anim3 { 0% { right: -100%; } 50%,100% { right: 100%; } } .btn span:nth-child(4) { bottom: -100%; left: 0; width: 2px; height: 100%; background: linear-gradient(360deg, transparent, #28b847); animation: btn-anim4 1s linear infinite; animation-delay: .75s } @keyframes btn-anim4 { 0% { bottom: -100%; } 50%,100% { bottom: 100%; } }
JS
Copied
Output
Our Courses
HTML 5
CSS
JavaScript
MySql
PHP
Laravel
Bootstrap
Programming Tutorial
PHP
JavaScript
HTML
Laravel
MySQL
JQuery
CSS
Git
Bootstrap
Vue JS
Android
Python
Server
Code Snippets
Chat Box
Range Slider
Radio Button
Select Box
Nav Bar
Other
Testimonial
Carousel
Logo
Loader
Lightbox
Forms
Popup
Table
HTML Course Code
HTML Entity
↑→ Arrows
$¢ Currency
Aö Letters
%+ Math
1¾ Numbers
&— Punctuation
©™ Symbols
Best Of
Internet
Technology
Health
Travel
Onine Tools
CSS Minifier
Text Converter
Age Calculator
Pincode Details
Whiteboard
PDF to Text
Gradient Generator
PX to REM Converter
REM to PX Converter
PX to EM Converter
EM to PX Converter
WEBP Converter
Latest & Upcoming movies
Bollywood
Hollywood
Tamil
Telgu
Bangla
Web Series
Notes
HTML
CSS
JS