Form using HTML and CSS , javascript Responsive and animated
Dear student if you practice with source so it will very simple way to learn coding .
here you will get web developing code like javascript ,html ,css,
and also java programming language .
Please share this side,s link to your friends and your relative.
you can preview of this source code on clicking video play_bottom.
Please see this video on full resolution.
Try now this source code through copy and paste
Note :Here picture of top will not show in your PC you can select any other
here because this will not save in your PC
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
* {
box-sizing: border-box;
padding: 0px;
margin: 0px;
}
body {
background-image: url("chess_pieces_fighting_board_88519_1280x720.jpg");
background-position: center;
background-size: cover;
height: 100vh;
}
form {
position: absolute;
top: 40%;
left: 50%;
transform: translate(-50%, -50%);
height: 400px;
width: 350px;
text-align: center;
border-radius: 15px;
box-shadow: white 0px 0px 3px, red 0px 0px 3px, red
0px 0px 3px, red 0px 0px 3px, red 0px 0px 3px, red 0px 0px 3px, red 3px 3px 3px;
background-color: black;
opacity: 0.78;
}
input[type="text"] {
background-color: black;
color: #ddd;
font-weight: bold;
margin-top: 20px;
padding: 5px 5px 5px 5px;
border-radius: 15px;
font-stretch: ultra-expanded;
width: 190px;
text-align: center;
border: none;
transition: width 0.6s ease-in-out;
box-shadow: white 0 0 5px, aqua 0 0 5px, aqua 0 0 5px,
aqua 0 0 5px, aqua 0 0 5px, aqua 0 0 5px, aqua 0 0 5px, aqua 0 0 5px;
}
input[type="email"] {
background-color: black;
color: #ddd;
font-weight: bold;
box-shadow: white 0 0 6px, rgb(102, 4, 4)
0 0 6px, rgb(102, 4, 4) 0 0 6px, rgb(102, 4, 4) 0 0 6px,
rgb(102, 4, 4) 0 0 6px, rgb(102, 4, 4) 0 0 6px, rgb(102, 4, 4) 0 0 6px;
margin-top: 20px;
padding: 5px 5px 5px 5px;
border-radius: 15px;
font-stretch: ultra-expanded;
width: 190px;
transition: width 0.6s ease-in-out;
border: none;
text-align: center;
}
input[type="password"] {
box-shadow: white 0 0 5px, green 0 0 5px, green 0 0 5px, green 0 0 5px, green 0 0 5px, green 0 0 5px, green 0 0 5px;
text-align: center;
background-color: black;
color: #ddd;
padding: 5px 5px 5px 5px;
border-radius: 15px;
transition: width 0.6s ease-in-out;
margin-top: 20px;
font-weight: bolder;
width: 190px;
}
input[type="password"]:focus {
width: 240px;
}
input[type="email"]:focus {
width: 240px;
}
input[type="text"]:focus {
width: 240px;
}
input[type="submit"] {
background-color: black;
width: 190px;
padding: 5px 5px 5px 5px;
border-radius: 15px;
margin-top: 30px;
font-weight: bolder;
color: white;
letter-spacing: 3px;
border: none;
box-shadow: white 0 0 5px, red 0 0 5px, red 0 0 5px,
red 0 0 5px, red 0 0 5px, red 0 0 5px, red 0 0 5px, red 0 0 5px;
}
input[type="submit"]:hover {
background-color: red;
font-weight: bolder;
letter-spacing: 3px;
transition: background 0.4s ease-in-out;
}
input[type="checkbox"] {
color: white;
margin-top: 10px;
margin-right: 35px;
background-color: blue;
}
#heading {
font-size: 40px;
margin-left: -75px;
margin-top: 70px;
color: white;
font-weight: bold;
}
</style>
</head>
<body>
<form>
<div id="inp">
<div id="heading" contenteditable="true" spellcheck="true">Login</div>
<input type="text" placeholder="Name" name="user_name" required><br>
<input type="email" placeholder="Email" name="user_email" required><br>
<input type="password" id="Password" placeholder="Password" min="6" max="6" name="user_password" onclick="value=''" required><br>
<input type="checkbox" name="show_me_password" onclick="myFunction()">
<label style="color: white; margin-left: -29px;">Show me password</label>
<br>
<input type="submit" name="user_form_submit" value="DONE"
onclick="done()">
</div>
<script>
function myFunction() {
var x = document.getElementById("Password");
if (x.type === "password") {
x.type = "text";
} else {
x.type = "password";
}
}
function done() {
alert("Your form submited, Thank for this");
}
</script>
</form>
</body>
</html>
Comments
Post a Comment