Radius backgroung animated login form | bootstrap login form with background animation.
Hii guis, i am code with tanveer today i have bring for you a new article or blog which in this blog i have learn that make Radius backgroung animated login form.
Radius backgroung animated login form |
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="style.css">
<title>Radius Background Animated Login Form - codewithtanveer</title>
</head>
<body>
<section>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<div class="signin">
<div class="content">
<h2>Sign In</h2>
<div class="form">
<div class="inputBx">
<input type="text" required>
<i>Username</i>
</div>
<div class="form">
<div class="inputBx">
<input type="password" required>
<i>Password</i>
</div>
<div class="links">
<a href="#">Forgot Password</a>
<a href="#">Signup</a>
</div>
<div class="inputBx">
<input type="submit" value="Login">
</div>
</div>
</div>
</div>
</section>
</body>
CSS
@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap");
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Quicksand', sans-serif;
}
body{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #000;
}
section{
position: absolute;
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
gap: 2px;
flex-wrap: wrap;
overflow: hidden;
}
section::before{
content: '';
position: absolute;
width: 100%;
height: 100%;
background: linear-gradient(#000,#0bf626,#000);
animation: animate 5s linear infinite;
}
@keyframes animate{
0%
{
transform: translateY(-100%);
}
100%
{
transform: translateY(100%);
}
}
section span{
position: relative;
display: block;
width: calc(6.25vw - 2px);
height: calc(6.25vw - 2px);
background: #181818;
z-index: 2;
transition: 1.1s;
border-radius: 50%
}
section span:hover{
background: #0bf626;
transition: 0s;
}
section .signin{
position: absolute;
width: 400px;
background: #222;
z-index: 1000;
display: flex;
justify-content: center;
align-items: center;
padding: 40px;
border-radius: 15px;
box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}
section .signin .content{
position: relative;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
gap: 40px;
}
section .signin .content h2{
font-size: 2em;
color: #0bf626;
text-transform: uppercase;
}
section .signin .content .form{
width: 100%;
display: flex;
flex-direction: column;
gap: 25px;
}
section .signin .content .form .inputBx{
position: relative;
width: 100%;
}
section .signin .content .form .inputBx input{
position: relative;
width: 100%;
background: #333;
border: none;
outline: none;
padding: 25px 10px 7.5px;
border-radius: 4px;
color: #fff;
font-weight: 500;
font-size: 1em;
}
section .signin .content .form .inputBx i{
position: absolute;
left: 0;
padding: 15px 10px;
font-style: normal;
color: #aaa;
transition: 0.5s;
pointer-events: none;
}
.signin .content .form .inputBx input:focus ~ i,
.signin .content .form .inputBx input:focus ~ i{
transform: translateY(-7.5px);
font-size: 0.8em;
color: #fff;
}
.signin .content .form .links{
position: relative;
width: 100%;
display: flex;
justify-content: space-between;
}
.signin .content .form .links a{
color: #fff;
text-decoration: none;
}
.signin .content .form .links a:nth-child(2){
color: #0bf626;
font-weight: 600;
}
.signin .content .form .inputBx input[type="submit"]{
padding: 10px;
background: #0bf626;
color: #111;
font-weight: 600;
font-size: 1.25em;
letter-spacing: 0.05em;
cursor: pointer;
}
@media (max-width: 900px)
{
section span
{
position: relative;
display: block;
width: calc(10vw - 2px);
height: calc(10vw - 2px);
}
}
@media (max-width: 600px)
{
section span
{
position: relative;
display: block;
width: calc(20vw - 2px);
height: calc(20vw - 2px);
}
}
0 Comments