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
"form"
Bootstrap 3.0.0 Snippet by
evarevirus
3.0.0
Preview
HTML
View Full Screen
Fork
Fork this
2.9K
 
3 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 ----------> <!DOCTYPE html><html class=''> <head><script src='//production-assets.codepen.io/assets/editor/live/console_runner-079c09a0e3b9ff743e39ee2d5637b9216b3545af0de366d4b9aad9dc87e26bfd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/events_runner-73716630c22bbc8cff4bd0f07b135f00a0bdc5d14629260c3ec49e5606f98fdd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/css_live_reload_init-2c0dc5167d60a5af3ee189d570b1835129687ea2a61bee3513dee3a50c115a77.js'></script><meta charset='UTF-8'><meta name="robots" content="noindex"><link rel="shortcut icon" type="image/x-icon" href="//production-assets.codepen.io/assets/favicon/favicon-8ea04875e70c4b0bb41da869e81236e54394d63638a1ef12fa558a4a835f1164.ico" /><link rel="mask-icon" type="" href="//production-assets.codepen.io/assets/favicon/logo-pin-f2d2b6d2c61838f7e76325261b7195c27224080bc099486ddd6dccb469b8e8e6.svg" color="#111" /><link rel="canonical" href="https://codepen.io/vineethtr/pen/ZBpebQ?limit=all&page=52&q=form" /> <link rel='stylesheet prefetch' href='https://fonts.googleapis.com/icon?family=Material+Icons'> <style class="cp-pen-styles">@import url("https://fonts.googleapis.com/css?family=Open+Sans"); *, *:after, *:before { box-sizing: border-box; } body { background: #eee; font-family: 'Open Sans', sans-serif; } .grop-from { width: 360px; height: 70px; background: #fff; position: fixed; left: 50%; top: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); border-radius: 50px; } .grop-from .form-body { height: 70px; overflow: hidden; border-radius: 50px; } .grop-from .form-body .error-text { position: absolute; left: 80px; top: 4px; z-index: 25; color: #b71c1c; font-size: 10px; font-weight: 600; display: none; } .grop-from .form-body .form-controls { position: relative; z-index: 5; -webkit-transition: ease-in 0.2s; transition: ease-in 0.2s; top: 0; } .grop-from .form-body .form-controls input { display: block; width: 100%; height: 70px; padding: 10px 60px 10px 80px; font-size: 18px; color: #666; border: none; } .grop-from .form-body .form-controls input:focus { outline: none; } .grop-from .form-head { position: absolute; left: 0; top: 0; width: 70px; height: 100%; background: #F50057; border-radius: 50px; text-align: center; line-height: 70px; font-size: 22px; color: #fff; cursor: pointer; z-index: 40; box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); -webkit-transition: ease-in 0.2s; transition: ease-in 0.2s; } .grop-from .form-head .text { display: none; } .grop-from .form-head .text:before { font-family: 'Open Sans', sans-serif; } .grop-from .form-action { position: absolute; width: 50px; height: 50px; background: #fefefe; text-align: center; right: 10px; top: 50%; border-radius: 50px; -webkit-transform: translateY(-50%); transform: translateY(-50%); z-index: 50; cursor: pointer; -webkit-transition: 0.3s; transition: 0.3s; border: none; outline: none; color: inherit; } .grop-from .form-action:hover { background: #f9f9f9; } .grop-from .form-action .icon-action { -webkit-transition: ease-in 0.2s; transition: ease-in 0.2s; } .grop-from .form-action .icon-action:after { line-height: 50px; content: 'arrow_forward'; } .grop-from .form-action .icon-action.back { -webkit-transform: rotate(180deg); transform: rotate(180deg); } .grop-from .icon-placeholder { font-size: 40px; line-height: 70px; } .grop-from#signup { color: #fff; } .grop-from#signup .form-head { width: 100%; } .grop-from#signup .form-head .icon-placeholder { display: none; } .grop-from#signup .form-head .text { display: block; } .grop-from#signup .form-head .text:before { content: 'Sign Up'; } .grop-from#signup .form-action { right: 100px; background: none; line-height: 65px; } .grop-from#signup .form-action .icon-action.back { -webkit-transform: rotate(0); transform: rotate(0); } .grop-from#success { color: #fff; } .grop-from#success .form-head { width: 100%; background: #00E676; } .grop-from#success .form-head .icon-placeholder { display: none; } .grop-from#success .form-head .text { display: block; } .grop-from#success .form-head .text:before { content: 'Success'; } .grop-from#success .form-action { right: 90px; background: none; line-height: 65px; } .grop-from#success .form-action .icon-action.back { -webkit-transform: rotate(0); transform: rotate(0); } .grop-from#success .form-action .icon-action:after { content: 'mood'; } .grop-from#name { color: #9C27B0; } .grop-from#name .form-head { background: #9C27B0; } .grop-from#name .form-head .icon-placeholder:after { content: 'face'; } .grop-from#phone { color: #009688; } .grop-from#phone .form-head { background: #009688; } .grop-from#phone .form-head .icon-placeholder:after { content: 'phone'; } .grop-from#phone .form-body .form-controls { top: -70px; } .grop-from#email { color: #039BE5; } .grop-from#email .form-head { background: #039BE5; } .grop-from#email .form-head .icon-placeholder:after { content: 'mail_outline'; } .grop-from#email .form-body .form-controls { top: -140px; } .grop-from#password { color: #37474F; } .grop-from#password .form-head { background: #37474F; } .grop-from#password .form-head .icon-placeholder:after { content: 'lock_outline'; } .grop-from#password .form-body .form-controls { top: -210px; } .grop-from#password-repeat { color: #212121; } .grop-from#password-repeat .form-head { background: #212121; } .grop-from#password-repeat .form-head .icon-placeholder:after { content: 'lock'; } .grop-from#password-repeat .form-body .form-controls { top: -280px; } .grop-from.error .form-head { background: #b71c1c !important; } .grop-from.error .form-head .icon-placeholder:after { content: 'close' !important; } .grop-from.error .form-body .form-controls input:-moz-placeholder { color: #b71c1c; } .grop-from.error .form-body .form-controls input::-moz-placeholder { color: #b71c1c; } .grop-from.error .form-body .form-controls input:-ms-input-placeholder { color: #b71c1c; } .grop-from.error .form-body .form-controls input::-webkit-input-placeholder { color: #b71c1c; } .material-icons, .grop-from .form-action .icon-action, .icon-placeholder { font-family: 'Material Icons'; font-weight: normal; font-style: normal; font-size: 24px; /* Preferred icon size */ display: inline-block; line-height: 1; text-transform: none; letter-spacing: normal; word-wrap: normal; white-space: nowrap; direction: ltr; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; -moz-osx-font-smoothing: grayscale; -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga'; } </style></head><body> <form class="grop-from" id="signup"> <div class="form-head"><span class="text"> </span><i class="icon-placeholder"></i></div> <div class="form-body"><span class="error-text">Please Fill Out This Field</span> <div class="form-controls"> <input id="control-name" placeholder="Name"/> <input id="control-phone" placeholder="Phone No"/> <input id="control-email" placeholder="Email"/> <input id="control-password" placeholder="Password" type="password"/> <input id="control-password-repeat" placeholder="Confirm Password" type="password"/> </div> </div><a class="form-action"><i class="icon-action"></i></a> </form> <script src='//production-assets.codepen.io/assets/common/stopExecutionOnTimeout-b2a7b3fe212eaa732349046d8416e00a9dec26eb7fd347590fbced3ab38af52e.js'></script><script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js'></script> <script >$('.form-head').click(function(){ if($(this).closest('.grop-from').attr('id')=='signup'){ $('.grop-from').attr('id' , 'name'); $('.icon-action').addClass('back'); } else if($(this).closest('.grop-from').attr('id')=='success'){ $('.grop-from').attr('id' , 'signup'); $('input').val(''); } }); $('.form-action').click(function(){ var form_id = $('.grop-from').attr('id'); $('.icon-action').addClass('back'); if($('#control-' + form_id).val() != ''){ switch (form_id) { case 'name': form_id = "phone"; break; case "phone": form_id = "email"; break; case "email": form_id = "password"; break; case "password": form_id = "password-repeat"; break; case "password-repeat": form_id = "success"; break; case "success": form_id = "signup"; break; } $('.icon-action').addClass('back'); } else{ switch (form_id) { case 'name': form_id = "signup"; $('.icon-action').removeClass('back'); break; case "phone": form_id = "name"; break; case "email": form_id = "phone"; break; case "password": form_id = "email"; break; case "password-repeat": form_id = "password"; break; case "success": form_id = "signup"; break; } $('.icon-action').removeClass('back'); } $('.grop-from').attr('id' , form_id); }); $('input').keyup(function(){ $('.grop-from').removeClass('error'); $('.error-text').fadeOut(); if($(this).val()!=''){ $('.icon-action').removeClass('back'); } else{ $('.icon-action').addClass('back'); } }) //# sourceURL=pen.js </script> </body></html>
Related:
See More
Template
Paper Kit 2 PRO
463.0K
45
login-form
170.7K
18
Login Form
142.1K
51
Contact Form
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76