Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login page with Animations using CSS #524

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Login Page Animation with Css/index.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions Login Page Animation with Css/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Wave Animation!</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200" />
<link rel="stylesheet" href="style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Indie+Flower&family=Inter&display=swap" rel="stylesheet">

</head>
<body>

<section>
<div class="form-box">
<div class="form-valuee">
<form action="">
<h2>Login</h2>
<div class="inputbox">
<span class="material-symbols-outlined">
mail
</span>
<input type="email" placeholder="">
<label for="">Email</label>
</div>
<div class="inputbox">
<span class="material-symbols-outlined">
lock_open
</span>
<input type="password" placeholder="" requried>
<label for="">Password</label>
</div>
<div class="forget">
<label for="" id="remem"><input type="checkbox">Remember Me</label>
<a href="#" id="fp">Forget Password</a>
</div>
<button>Log in</button>
<div class="register">
<p>Don't have an account <a href="#" id="ra">Register</a>></p>
</div>
</form>
</div>
</div>
<div class="wave wave1"></div>
<div class="wave wave2"></div>
<div class="wave wave3"></div>
<div class="wave wave4"></div>
</section>

</body>
</html>
197 changes: 197 additions & 0 deletions Login Page Animation with Css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,197 @@
*{
font-family: 'Indie Flower', cursive;
font-family: 'Inter', sans-serif;
margin:0;
padding: 0;

}
.material-symbols-outlined {
position: absolute;
right: 8px;
top: 20px;
font-variation-settings:
'FILL' 0,
'wght' 400,
'GRAD' 0,
'opsz' 24
}
section{
background-color: #3586ff;
display: flex;
justify-content: center;
height: 100vh;
align-items: center;
width: 100%;
overflow: hidden;
}
.form-box{
position: relative;
background-color: #9dc4ff;
height: 410px;
width: 400px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 15px;
}

h2{
font-size: 2em;
color: #192655;
text-align: center;
}

.inputbox{
position: relative;
margin: 30px 0;
width: 310px;
border-bottom: 2px solid #fff;
}
.inputbox label{
position: absolute;
top: 50%;
left:5px;
transform: translateY(-50%);
color: black;
font-size: 1em;
pointer-events: none;
transition: 2s;
}

input:focus ~ label,
input:not(:placeholder-shown)~ label
{
top: -5px;
transition: 0.5s;
}


.inputbox input{
width: 100%;
height: 50px;
background: transparent;
outline: none;
border:none;
font-size: 1em;
padding:0 35px 0 5px;
}

.forget{
display: flex;
justify-content: center;
margin-bottom: 10px;
}
#remem{
margin-right: 10px;
}
#fp{
text-decoration: none;
margin-left: 10px;
}
#fp:hover{
text-decoration: underline;
color: red;
}

button{
width: 100%;
height: 40px;
border-radius: 40px;
border: none;
outline: none;
cursor:pointer;
font-size: 1.25em;
font-weight: 700;
background-color: #fff;
}
button:hover{
background-color: #0F2C59;
color: #fff;
}
.register{
cursor:default;
font-size: 0.9em;
font-weight: 500;
text-align: center;
margin: 25px 0 15px;
}
.register a{
text-decoration: none;
margin-left: 10px;
}
#ra:hover{
text-decoration: underline;
font-weight: 600;
}

.wave{
position:absolute;
bottom: 0;
left: 0;
width: 100%;
height: 100px;
background: url(wave.png);
background-size: 1000px 100px;

}
.wave1{
animation: animate 5s linear infinite;
z-index: 1000;
opacity: 0.8;
animation-delay:0s;
bottom:0;
}
@keyframes animate {
0%{
background-position: 0;
}
100%{
background-position: 1000px;
}

}
.wave2{
animation: animate2 15s reverse infinite;
z-index: 998;
opacity: 0.5;
animation-delay:-5s;
bottom:10px;
}
@keyframes animate2 {
0%{
background-position: 0;
}
100%{
background-position: 1000px;
}
}
.wave3{
animation: animate3 20s linear infinite;
z-index: 998;
opacity: 0.2;
animation-delay:-2s;
bottom:15px;
}
@keyframes animate3 {
0%{
background-position: 0;
}
100%{
background-position: 1000px;
}
}
.wave4{
animation: animate4 10s reverse infinite;
z-index: 950;
opacity: 0.7;
animation-delay:-5s;
bottom:20px;
}
@keyframes animate4 {
0%{
background-position: 0;
}
100%{
background-position: 1000px;
}
}
Binary file added Login Page Animation with Css/wave.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.