Welcome, How to create a responsive animated login form using Only HTML and CSS. I will show you by using HTML and CSS on how to create a responsive animated login form in Hindi. Login form looks modern, beautiful UI with awesome animation on login form label tag.
HTML
Before we start writing code first, we need to create a primary structure of the HTML document, so that the browser can understand and start working. The basic HTML structure looks like the following.
After writing the primary structure of the HTML document, you will also write the tags and content you need. After that, you can see the output in your browser. We know that HTML Sudu Mae is used for exposing content in a basic format. To complete our content we need to use CSS, which is an HTML insert and it creates an engaging user interface.
<html>
<head>
<title>Responsive Login Form</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div id="container">
<div class="imgage">
<img src="bg.jpg" width="300px" height="auto" alt="">
</div>
<form>
<input type="email" placeholder="Email" class="email">
<input type="password" placeholder="Password" class="password">
<input type="submit" value="Log In" class="btn">
</form>
</div>
</body>
</html>
CSS
Now, we have time to improve the HTML content, for that, we need to add CSS to the HTML file. CSS can be added to HTML documents in a total of three ways, here we are using outside CSS design using CSS will arrive here after typing and see the output in your browser.
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
background-color: #1e747e;
}
#container{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
box-shadow: 0 19px 38px rgba(0,0,0,.30),
0 15px 12px rgba(0,0,0,.20);
}
form{
display: flex;
flex-direction: column;
background: rgb(24,17,43);
padding: 20px;
justify-content: center;
}
input{
padding: 8px;
margin: 10px;
border:none;
border-radius: 5px;
outline: none;
}
.btn{
background: linear-gradient(45deg,yellow,rgba(255,105,130));
background-size: 200% 200%;
color: black;
font-size: 18px;
cursor: pointer;
background-position: 0% 50%;
transition: all 1s ease;
}
.btn:hover{
background-position: 100% 50%;
}
No comments: