Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"Elegant Login Form "
Bootstrap 3.0.0 Snippet by
bhanu1433
3.0.0
login
Preview
HTML
CSS
JS
View Full Screen
Fork
Fork this
7.8K
 
4 Fav
Post to Facebook
Tweet this
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- Sign-Up/Login Form bootsnipp --> <ins class="adsbygoogle" style="display:inline-block;width:728px;height:90px" data-ad-client="ca-pub-5715866801509976" data-ad-slot="7798512441"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> <form class="login"> <fieldset> <legend class="legend">Login</legend> <div class="input"> <input type="email" placeholder="Email" required /> <span><i class="fa fa-envelope-o"></i></span> </div> <div class="input"> <input type="password" placeholder="Password" required /> <span><i class="fa fa-lock"></i></span> </div> <button type="submit" class="submit"><i class="fa fa-long-arrow-right"></i></button> </fieldset> <div class="feedback"> login successful <br /> redirecting... </div> </form>
* { -ms-box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; margin: 0; padding: 0; border: 0; } html, body { width: 100%; height: 100%; background: url(https://subtlepatterns.com/patterns/sativa.png) repeat fixed; font-family: 'Open Sans', sans-serif; font-weight: 200; } .login { position: relative; top: 50%; width: 250px; display: table; margin: -150px auto 0 auto; background: #fff; border-radius: 4px; } .legend { position: relative; width: 100%; display: block; background: #FF7052; padding: 15px; color: #fff; font-size: 20px; } .legend:after { content: ""; background-image: url(http://simpleicon.com/wp-content/uploads/multy-user.png); background-size: 100px 100px; background-repeat: no-repeat; background-position: 152px -16px; opacity: 0.06; top: 0; left: 0; bottom: 0; right: 0; position: absolute; } .input { position: relative; width: 90%; margin: 15px auto; } .input span { position: absolute; display: block; color: #d4d4d4; left: 10px; top: 8px; font-size: 20px; } .input input { width: 100%; padding: 10px 5px 10px 40px; display: block; border: 1px solid #EDEDED; border-radius: 4px; transition: 0.2s ease-out; color: #a1a1a1; } .input input:focus { padding: 10px 5px 10px 10px; outline: 0; border-color: #FF7052; } .submit { width: 45px; height: 45px; display: block; margin: 0 auto -15px auto; background: #fff; border-radius: 100%; border: 1px solid #FF7052; color: #FF7052; font-size: 24px; cursor: pointer; box-shadow: 0px 0px 0px 7px #fff; transition: 0.2s ease-out; } .submit:hover, .submit:focus { background: #FF7052; color: #fff; outline: 0; } .feedback { position: absolute; bottom: -70px; width: 100%; text-align: center; color: #fff; background: #2ecc71; padding: 10px 0; font-size: 12px; display: none; opacity: 0; } .feedback:before { bottom: 100%; left: 50%; border: solid transparent; content: ""; height: 0; width: 0; position: absolute; pointer-events: none; border-color: rgba(46, 204, 113, 0); border-bottom-color: #2ecc71; border-width: 10px; margin-left: -10px; }
$( ".input" ).focusin(function() { $( this ).find( "span" ).animate({"opacity":"0"}, 200); }); $( ".input" ).focusout(function() { $( this ).find( "span" ).animate({"opacity":"1"}, 300); }); $(".login").submit(function(){ $(this).find(".submit i").removeAttr('class').addClass("fa fa-check").css({"color":"#fff"}); $(".submit").css({"background":"#2ecc71", "border-color":"#2ecc71"}); $(".feedback").show().animate({"opacity":"1", "bottom":"-80px"}, 400); $("input").css({"border-color":"#2ecc71"}); return false; });
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76