Skip to content

Instantly share code, notes, and snippets.

@ajdumanhug
Created September 20, 2023 18:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajdumanhug/e2bffa955cd8c8e3ed60fdc05dd6ed77 to your computer and use it in GitHub Desktop.
Save ajdumanhug/e2bffa955cd8c8e3ed60fdc05dd6ed77 to your computer and use it in GitHub Desktop.
Simple Login Form Animated
<div class="login">
<div class="form">
<h2>NOT WORKING YET!</h2>
<h3>Login</h3>
<input type="text" placeholder="Username">
<input type="password" placeholder="Password">
<input type="submit" value="Sign In" class="submit">
</div>
</div>
* {
box-sizing: border-box;
font-family: sans-serif;
}
.login {
width: 320px;
height: 450px;
border: 1px solid #CCC;
background: url(https://media4.giphy.com/media/BHNfhgU63qrks/giphy.gif) center center no-repeat;
background-size: cover;
margin: 30px auto;
border-radius: 20px;
}
.login .form {
width: 100%;
height: 100%;
padding: 15px 25px;
}
.login .form h2 {
color: #FFF;
text-align: center;
font-weight: normal;
font-size: 18px;
margin-top: 60px;
margin-bottom: 80px;
}
.login .form h3 {
color: #FFF;
text-align: center;
font-weight: normal;
font-size: 18px;
}
.login .form input {
width: 100%;
height: 40px;
margin-top: 20px;
background: rgba(255,255,255,.5);
border: 1px solid rgba(255,255,255,.1);
padding: 0 15px;
color: #FFF;
border-radius: 5px;
font-size: 14px;
}
.login .form input:focus {
border: 1px solid rgba(255,255,255,.8);
outline: none;
}
::-webkit-input-placeholder {
color: #DDD;
}
.login .form input.submit {
background: rgba(255,255,255,.9);
color: #444;
font-size: 15px;
margin-top: 40px;
font-weight: bold;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment