Material Design Login Form
How do I make an material design login form?
What is a material design login form? How do you make a material design login form? This script and codes were developed by Isac Fadoni on 13 June 2022, Monday.
Material Design Login Form - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Material Design Login Form</title> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=Roboto:400,500' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="login-container"> <section class="login" id="login"> <header> <h2>Application Name</h2> <h4>Login</h4> </header> <form class="login-form" action="#" method="post"> <input type="text" class="login-input" placeholder="User" required autofocus/> <input type="password" class="login-input" placeholder="Password" required/> <div class="submit-container"> <button type="submit" class="login-button">SIGN IN</button> </div> </form> </section> <p>2016 - <a href="https://www.twitter.com/isacfadoni">Isac Fadoni</a></p>
</div>
<button id="e1">Login error!</button> <script src="js/index.js"></script>
</body>
</html>
Material Design Login Form - Script Codes CSS Codes
html { height: 100%;
}
body { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; position: relative; min-height: 100%; background: #F1F1F1;
}
/* Animation Keyframes */
@-webkit-keyframes scale_header { 0% {max-height: 0px; margin-bottom: 0px; opacity: 0;} 100% {max-height: 117px; margin-bottom: 25px; opacity: 1;}
}
@keyframes scale_header { 0% {max-height: 0px; margin-bottom: 0px; opacity: 0;} 100% {max-height: 117px; margin-bottom: 25px; opacity: 1;}
}
@-webkit-keyframes input_opacity { 0% {-webkit-transform: translateY(-10px);transform: translateY(-10px); opacity: 0} 100% {-webkit-transform: translateY(0px);transform: translateY(0px); opacity: 1}
}
@keyframes input_opacity { 0% {-webkit-transform: translateY(-10px);transform: translateY(-10px); opacity: 0} 100% {-webkit-transform: translateY(0px);transform: translateY(0px); opacity: 1}
}
@-webkit-keyframes text_opacity { 0% {color: transparent;}
}
@keyframes text_opacity { 0% {color: transparent;}
}
@-webkit-keyframes error_before { 0% {height: 5px; background: rgba(0, 0, 0, 0.156); color: transparent;} 10% {height: 117px; background: #FFFFFF; color: #C62828} 90% {height: 117px; background: #FFFFFF; color: #C62828} 100% {height: 5px; background: rgba(0, 0, 0, 0.156); color: transparent;}
}
@keyframes error_before { 0% {height: 5px; background: rgba(0, 0, 0, 0.156); color: transparent;} 10% {height: 117px; background: #FFFFFF; color: #C62828} 90% {height: 117px; background: #FFFFFF; color: #C62828} 100% {height: 5px; background: rgba(0, 0, 0, 0.156); color: transparent;}
}
/* Login Form */
.login-container { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-box-align: center; -ms-flex-align: center; align-items: center; position: relative; width: 340px; height: auto; padding: 5px; box-sizing: border-box;
}
.login-container img { width: 200px; margin: 0 0 20px 0;
}
.login-container p { -ms-flex-item-align: start; align-self: flex-start; font-family: 'Roboto', sans-serif; font-size: 0.8rem; color: rgba(0, 0, 0, 0.5);
}
.login-container p a { color: rgba(0, 0, 0, 0.4);
}
.login { position: relative; width: 100%; padding: 10px; margin: 0 0 10px 0; box-sizing: border-box; border-radius: 3px; background: #FAFAFA; overflow: hidden; -webkit-animation: input_opacity 0.2s cubic-bezier(.55, 0, .1, 1); animation: input_opacity 0.2s cubic-bezier(.55, 0, .1, 1); box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
}
.login > header { position: relative; width: 100%; padding: 10px; margin: -10px -10px 25px -10px; border-bottom: 1px solid rgba(0, 0, 0, 0.1); background: #009688; font-family: 'Roboto', sans-serif; font-size: 1.3rem; color: #FAFAFA; -webkit-animation: scale_header 0.6s cubic-bezier(.55, 0, .1, 1), text_opacity 1s cubic-bezier(.55, 0, .1, 1); animation: scale_header 0.6s cubic-bezier(.55, 0, .1, 1), text_opacity 1s cubic-bezier(.55, 0, .1, 1); box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12), 0px 3px 1px -2px rgba(0, 0, 0, 0.2);
}
.login > header:before { content: ''; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; position: absolute; width: 100%; height: 5px; padding: 10px; margin: -10px 0 0 -10px; box-sizing: border-box; background: rgba(0, 0, 0, 0.156); font-family: 'Roboto', sans-serif; font-size: 0.9rem; color: transparent; z-index: 5;
}
.login.error_1 > header:before,
.login.error_2 > header:before { -webkit-animation: error_before 3s cubic-bezier(.55, 0, .1, 1); animation: error_before 3s cubic-bezier(.55, 0, .1, 1);
}
.login.error_1 > header:before { content: 'Invalid username or password!';
}
.login.error_2 > header:before { content: 'Invalid or expired Token!';
}
.login > header h2 { margin: 50px 0 10px 0;
}
.login > header h4 { font-size: 0.7em; -webkit-animation: text_opacity 1.5s cubic-bezier(.55, 0, .1, 1); animation: text_opacity 1.5s cubic-bezier(.55, 0, .1, 1); color: rgba(255, 255, 255, 0.4);
}
/* Form */
.login-form { padding: 15px; box-sizing: border-box;
}
/* Inputs */
.login-input { position: relative; width: 100%; padding: 10px 5px; margin: 0 0 25px 0; border: none; border-bottom: 2px solid rgba(0, 0, 0, 0.2); box-sizing: border-box; background: transparent; font-size: 1rem; font-family: 'Roboto', sans-serif; font-weight: 500; opacity: 1; -webkit-animation: input_opacity 0.8s cubic-bezier(.55, 0, .1, 1); animation: input_opacity 0.8s cubic-bezier(.55, 0, .1, 1); -webkit-transition: border-bottom 0.2s cubic-bezier(.55, 0, .1, 1); transition: border-bottom 0.2s cubic-bezier(.55, 0, .1, 1);
}
.login-input:focus { outline: none; border-bottom: 2px solid #E37F00;
}
/* Submit Button */
.submit-container { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; -webkit-box-pack: end; -ms-flex-pack: end; justify-content: flex-end; position: relative; padding: 10px; margin: 35px -25px -25px -25px; border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.login-button { padding: 10px; border: none; border-radius: 3px; background: transparent; font-family: 'Roboto', sans-serif; font-size: 0.9rem; font-weight: 500; color: #E37F00; cursor: pointer; opacity: 1; -webkit-animation: input_opacity 0.8s cubic-bezier(.55, 0, .1, 1); animation: input_opacity 0.8s cubic-bezier(.55, 0, .1, 1); -webkit-transition: background 0.2s ease-in-out; transition: background 0.2s ease-in-out;
}
.login-button.raised { padding: 5px 10px; color: #FAFAFA; background: #E37F00; box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.137255), 0px 1px 5px 0px rgba(0, 0, 0, 0.117647), 0px 3px 1px -2px rgba(0, 0, 0, 0.2);
}
.login-button:hover { background: rgba(0, 0, 0, 0.05);
}
.login-button.raised:hover { background: #FDAB43;
}
Material Design Login Form - Script Codes JS Codes
var form = document.getElementById('login');
var buttonE1 = document.getElementById('e1');
buttonE1.addEventListener('click', function () { form.classList.add('error_1'); setTimeout(function () { form.classList.remove('error_1'); }, 3000);
});
Developer | Isac Fadoni |
Username | isac |
Uploaded | June 13, 2022 |
Rating | 4 |
Size | 3,292 Kb |
Views | 58,696 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
ES2015 Notification Plugin | 5,825 Kb |
Circle to Rectangle Card Transition | 3,473 Kb |
Hamburger Menu Icon | 2,768 Kb |
Dribbble to Code | 2,092 Kb |
React Template | 1,241 Kb |
Eyedropper CSS | 2,758 Kb |
Material Hover | 3,297 Kb |
PayPal Logo | 2,681 Kb |
A Pen by Isac Fadoni | 2,072 Kb |
Unfolding Post | 4,069 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
CSS3 Diamond | Rendro | 1,960 Kb |
CSS Hover Effects | Alen | 3,613 Kb |
Flex layout example | Mofny | 1,663 Kb |
A Pen by Manoz | Manoz | 2,424 Kb |
Google Maps API Ground Overlay | Boycetrus | 2,961 Kb |
CSS Social Media Icon | TychoBlender | 3,871 Kb |
Perspective Origin Demo | Agelber | 3,614 Kb |
CSS Parent Selector | Tomhodgins | 2,143 Kb |
Custom Select Element | Agrayson | 3,616 Kb |
Codero Sitemap | S1m0ne | 28,169 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!