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
"cyenshj"
Bootstrap 3.1.0 Snippet by
jubeca
3.1.0
jQuery
Preview
HTML
CSS
JS
View Full Screen
Forked from
Fork
Fork this
Parent
1.4K
 
0 Fav
Post to Facebook
Tweet this
<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.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 ----------> <div class="container"> <div class="login-container"> <div id="output"></div> <div class="form-box"> <form action="" method=""> <div class="row"> <div class="col-md-4"> <img src="http://victorargote.com/ptt/activo.png" class="img-responsive"> <br> <button type="button" class="btn btn-info col-md-12">Hang up</button> </div> <div class="col-md-4"> <br> <img src="http://victorargote.com/ptt/puntos.png" class="loader-img"> </div> <div class="col-md-4"> <img src="http://victorargote.com/ptt/inactivo.png" class="img-responsive"> <br> <button type="button" class="btn btn-info col-md-12">Talk</button> </div> </div> </form> </div> </div> </div>
body{background: #eee;} html,body{ position: relative; height: 100%; } .login-container{ position: relative; width: 400px; height: 250px; margin: 80px auto; padding: 20px 40px 20px; text-align: center; background: #fff; border: 1px solid #ccc; } .phone-img{ width: 30px; height: 70px; } .loader-img{ width: 50px; height: 12px; } #output{ position: absolute; width: 300px; top: -75px; left: 0; color: #fff; } #output.alert-success{ background: rgb(25, 204, 25); } #output.alert-danger{ background: rgb(228, 105, 105); } .login-container::before,.login-container::after{ content: ""; position: absolute; width: 100%;height: 100%; top: 3.5px;left: 0; background: #fff; z-index: -1; -webkit-transform: rotateZ(4deg); -moz-transform: rotateZ(4deg); -ms-transform: rotateZ(4deg); border: 1px solid #ccc; } .login-container::after{ top: 5px; z-index: -2; -webkit-transform: rotateZ(-2deg); -moz-transform: rotateZ(-2deg); -ms-transform: rotateZ(-2deg); } .form-box { margin-top: 30px; } .form-box input{ width: 100%; padding: 10px; text-align: center; height:40px; border: 1px solid #ccc;; background: #fafafa; transition:0.2s ease-in-out; } .form-box input:focus{ outline: 0; background: #eee; } .form-box input[type="text"]{ border-radius: 5px 5px 0 0; text-transform: lowercase; } .form-box input[type="password"]{ border-radius: 0 0 5px 5px; border-top: 0; } .form-box button.login{ margin-top:15px; padding: 10px 20px; } .animated { -webkit-animation-duration: 1s; animation-duration: 1s; -webkit-animation-fill-mode: both; animation-fill-mode: both; } @-webkit-keyframes fadeInUp { 0% { opacity: 0; -webkit-transform: translateY(20px); transform: translateY(20px); } 100% { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); } } @keyframes fadeInUp { 0% { opacity: 0; -webkit-transform: translateY(20px); -ms-transform: translateY(20px); transform: translateY(20px); } 100% { opacity: 1; -webkit-transform: translateY(0); -ms-transform: translateY(0); transform: translateY(0); } } .fadeInUp { -webkit-animation-name: fadeInUp; animation-name: fadeInUp; }
$(function(){ var textfield = $("input[name=user]"); $('button[type="submit"]').click(function(e) { e.preventDefault(); //little validation just to check username if (textfield.val() != "") { $("#output").addClass("alert alert-success animated fadeInUp").html("Welcome back " + "<span style='text-transform:uppercase'>" + textfield.val() + "</span>"); $("#output").removeClass(' alert-danger'); $("input").css({ "height":"0", "padding":"0", "margin":"0", "opacity":"0" }); //change button text $('button[type="submit"]').html("continue") .removeClass("btn-info") .addClass("btn-default").click(function(){ $("input").css({ "height":"auto", "padding":"10px", "opacity":"1" }).val(""); }); //show avatar $(".avatar").css({ "background-image": "url('http://api.randomuser.me/0.3.2/portraits/women/35.jpg')" }); } else { //remove success mesage replaced with error message $("#output").removeClass(' alert alert-success'); $("#output").addClass("alert alert-danger animated fadeInUp").html("sorry enter a username "); } //console.log(textfield.val()); }); });
Related:
See More
Free Template
Paper Kit 2 Angular
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76