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
"Sign up and Login Form"
Bootstrap 4.1.1 Snippet by
Sajjad88
4.1.1
Preview
HTML
CSS
View Full Screen
Fork
Fork this
593
 
0 Fav
Post to Facebook
Tweet this
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <input type="checkbox" id="chk"> <div class="signup"> <form action=""> <label for="chk">Sign up</label> <input type="text" placeholder="Username..."> <input type="email" placeholder="Email..."> <input type="password" placeholder="Password..."> <button>Sign up</button> </form> </div> <div class="login"> <form action=""> <label for="chk">Login</label> <input type="text" placeholder="Username..."> <input type="email" placeholder="Email..."> <input type="password" placeholder="Password..."> <button>login</button> </form> </div> </div>
*{ margin: 0; padding: 0; box-sizing: border-box; } body{ display: flex; justify-content: center; align-items: center; min-height: 100vh; background: #ffffff; } .container{ width: 350px; background: inherit; height: 500px; overflow: hidden; border-radius: 10px; box-shadow: -18px 5px 40px 15px rgba(0, 0, 0, 0.2); } .container #chk{ display: none; } .container .signup{ position: relative; width: 100%; height: 100%; } label{ color:rgb(26, 25, 25); font-size: 35px; display: flex; justify-content: center; margin: 50px; font-weight: 700; cursor: pointer; transition: 0.5s ease-in-out; } input{ width: 60%; height: 40px; background-color: #e0dede; display: flex; justify-content: center; margin: 20px auto; padding: 10px; border: none; outline: none; border-radius: 25px; } button{ border: none; outline: none; width: 60%; height: 40px; display: block; margin: 20px auto; border-radius: 25px; color:rgb(26, 25, 25); background-color: #e0dede; font-size: 16px; cursor: pointer; font-weight: 600; transition: 0.2 ease-in; } button:hover{ background-color: #3d54ff; } .container .login{ height: 460px; background: rgb(108, 108, 225); border-radius: 70% / 20%; transform: translateY(-180px); transition: 0.8 ease-in-out; } .container .login label{ padding-top: 10px; color:rgb(26, 25, 25); transform:scale(0.6); } .container #chk:checked ~ .login{ transform: translateY(-500px); } .container #chk:checked ~ .login label{ transform:scale(1); } .container #chk:checked ~ .signup label{ transform:scale(0.6); }
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76