Sliding login form
How do I make an sliding login form?
V1.2 - more fluid transitions. Instead of using css animations I am using jQuery to animate the form.. What is a sliding login form? How do you make a sliding login form? This script and codes were developed by Konstantin Minevich on 07 July 2022, Thursday.
Sliding login form - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Sliding login form</title> <link rel='stylesheet prefetch' href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300'>
<link rel='stylesheet prefetch' href='http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="loginform-open"> <a href=""><i class="fa fa-list-alt fa-lg"></i> Login Form</a>
</div>
<form class="login-form"> <a href="" class="form-close bounce"><i class="fa fa-times fa-lg"></i></a> <label for="name">Name:</label> <input type="text" id="name"/> <label for="password">Password:</label> <input type="password" id="password"/> <button type="submit">Login</button>
</form> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Sliding login form - Script Codes CSS Codes
*{ font-family: "Helvetica Neue", sans-serif;
}
.loginform-open{ z-index: 10000; position: absolute; top: 0px; left: 0px; width: 100%; background-color: #333; border-bottom: 5px solid #222; padding: 10px 0; text-align: center; color: #AC9BC4;
}
.loginform-open a{ color: #fff; text-decoration: none;
}
body{ background-color: #e1e1f2; padding-top: 35px;
}
.login-form{ max-width: 320px; position: absolute; left:0; right:0; top: -100%; margin-left: auto; margin-right: auto; padding: 35px; background-color: #fff; box-shadow: 0 0 5px rgba(0,0,0,.1), 0 3px 0 rgba(0,0,0,.1); border-radius: 4px; color: #333; font-weight: bold; font-size: 1.125em; position: relative;
}
.form-close{ position: absolute; top: 5px; right: 5px; color: #222;
}
input[type=text],
input[type=password],
label,
button{ display: block; width: 100%;
}
input{ margin: 5% 0; box-sizing: border-box;
}
input{ padding: 10px 15px; border: 1px solid transparent; background-color: #f0f0f0; outline: 0; transition: background .15s ease-in, border .25s ease-in; border-radius: 5px; font-size: 1em;
}
input:focus{ background-color: #f9f9f9; border: 1px solid #ddd; transition: background 1s ease;
}
button{ margin: 20px 0 0; padding: 10px 5px; outline: 0; border: none; border-bottom: 5px solid #AC9BC4; background-color: rgba(192,173,219,.8); transition: background .2s ease-in; font-size: 1.1em; color: #fff; border-radius: 5px;
}
/*button:hover{ background-color: rgba(192,173,219,1);
}
.bounce:hover{ animation: bounce .5s ease-in-out; -webkit-animation: bounce .5s ease-in-out;
}
@keyframes bounce{ 0%{transform: translateY(0);} 50%{transform: translateY(5px);} 100%{transform: translateY(0);}
}
@-webkit-keyframes bounce{ 0%{transform: translateY(0);} 50%{transform: translateY(5px);} 100%{transform: translateY(0);}
}
*/
Sliding login form - Script Codes JS Codes
$('.login-form').hide();
$('.loginform-open a').click(function(e){ e.preventDefault(); $('.login-form').show().animate({'top':'65px'},300);
});
$('.form-close').click(function(e){ e.preventDefault(); $('.login-form').animate({'top':'-100%'},300).hide();
});
Developer | Konstantin Minevich |
Username | humbl3man |
Uploaded | July 07, 2022 |
Rating | 3 |
Size | 2,652 Kb |
Views | 52,624 |
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 |
Stacked paper effect | 82,127 Kb |
Follow along links | 5,399 Kb |
Sticky nav example page | 3,975 Kb |
A Pen by Konstantin Minevich | 2,095 Kb |
Simple flexbox site | 4,558 Kb |
Bootstrap_template | 3,773 Kb |
Todo in react | 5,854 Kb |
Clean landing page. | 4,424 Kb |
Fullscreen menu | 2,179 Kb |
Sketchbook with canvas | 3,631 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 |
Box-sizing | Elad2412 | 1,572 Kb |
Calculator | Rzencoder | 4,572 Kb |
Ghost Buttons with CSS3 | Mithicher | 2,509 Kb |
Pure CSS Dial | Lukewatts | 3,018 Kb |
A Pen by tugce | Ecgutcnkr | 4,197 Kb |
Swiftype Lower Third | Zumwalt | 4,796 Kb |
Ionic Infinite outside ion-content with ion-pane | Felquis | 3,117 Kb |
Donut Chart example - MorrisJS | Capelo | 2,385 Kb |
Mobile Nav Menu | AliKlein | 4,745 Kb |
Ripples in water | Nobitagit | 2,704 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!