"Login Form & Register Form With Glassy Effect"
Bootstrap 4.1.1 Snippet by neerajposwal

<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 ----------> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Glssy Effect Form</title> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"> <!-- jQuery library --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <!-- Latest compiled JavaScript --> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.0/css/all.css" integrity="sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ" crossorigin="anonymous"> </head> <body style="background-color:#4662a3;color:white;"> <div class="col-lg-12 col-xs-12"> <h2>Login Form & Register Form With Glassy Effect</h2> </div> <div class="col-lg-12 col-xs-12"> <div class="col-lg-offset-1 col-lg-4 col-sm-6 "> <form class="form1"> <div class="form-group" style="margin-top:20%;"> <label for="exampleInputEmail1">Email address</label> <input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email"> </div> <div class="form-group"> <label for="exampleInputPassword1">Password</label> <input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password"> <small id="emailHelp" class="form-text text-muted">We'll never share your password with anyone else.</small> </div> <div class="form-group form-check"> <input type="checkbox" class="form-check-input" id="exampleCheck1"> <label class="form-check-label" for="exampleCheck1">Check me out</label> </div> <button class="btn btn-default">Login</button> </form> </div> <div class="col-lg-6 col-sm-6 some"> <form id="form2"> <div class="form-group" style="margin-top:8%;"> <label for="exampleInputEmail1">Email address</label> <input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email"> </div> <div class="form-group"> <label for="exampleInputPassword1">Password</label> <input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password"> <small id="emailHelp" class="form-text text-muted">We'll never share your password with anyone else.</small> </div> <div class="form-group"> <label for="exampleInputPassword1">Repeat Password</label> <input type="password" class="form-control" id="exampleInputPassword1" placeholder="Repeat Password"> <small id="emailHelp" class="form-text text-muted">We'll never share your password with anyone else.</small> </div> <button type="submit" class="btn btn-default">Register</button> <p align="right">Welcome New User</p> </form> </div> </div> </body> </html>
body{width:100%; height:100%; font-variant:small-caps; color:white; font-weight:bold;} .form1{ padding:30px; height:430px; margin-top:7%; border-radius:10px; color:white; box-shadow:inset 0 0 20px gray; } .form1:hover{ background-color:black; transition:0.5s; color:white; } #form2{ border:0px solid black; padding:30px; height:430px; margin-top:5%; border-radius:10px; color:white; box-shadow:inset 0 0 20px gray; } #form2:hover{background-color:black;transition:0.5s;color:white;}

Related: See More


Questions / Comments: