Today We Are Reading How To Create Neon Effect Login Form Follow My Blog For More Magical Codes We Are Daily Upload Awesome Codes
How To Create:-
1-Copy The Code
2-Paste on Your Code Editor
3-Run It
Source Code:-
<!Doctype html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>Priyanshu | Neon Login </title>
</head><center>
<h1>This Is Created By Priyanshu Kumar</h1></center>
<body>
<div class="login-box">
<h1 class="glow">Login</h1>
<br>
<form>
<div class="user-box">
<input type="text" name="" required="">
<label>Username</label>
</div>
<div class="user">
<input type="password" name="" required="" class="password">
<label>Password</label>
</div>
<a href="#">
<span></span>
<span></span>
<span></span>
<span></span>
Submit
</a>
</form>
</div>
<style>
html {
height: 100%;
}
body {
margin:0;
padding:0;
font-family: sans-serif;
background: linear-gradient(#141e30, #243b55);
}
.glow {
font-size: 29px;
color: #fff;
text-align: center;
-webkit-animation: glow 1s ease-in-out infinite alternate;
-moz-animation: glow 1s ease-in-out infinite alternate;
animation: glow 1s ease-in-out infinite alternate;
}
@-webkit-keyframes glow {
from {
text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #4efacf, 0 0 40px #3ac4fa, 0 0 50px #00e68e, 0 0 60px #4eecf1, 0 0 70px #00e6d3;
}
to {
text-shadow: 0 0 20px #fff, 0 0 30px #4ddbff, 0 0 40px #4df9ff, 0 0 50px #4dffff, 0 0 60px #22d8f0, 0 0 70px #5ebcfa, 0 0 80px #4dffca;
}
}
.login-box {
position: absolute;
top: 50%;
left: 50%;
width: 400px;
padding: 40px;
transform: translate(-50%, -50%);
background: #fff;
box-sizing: border-box;
border-radius: 10px;
background-color: rgb(249, 250, 250);
box-shadow: 120px 80px 40px 20px #0ff;
/* in order: x offset, y offset, blur size, spread size, color */
/* blur size and spread size are optional (they default to 0) */
}
.login-box h2 {
margin: 0 0 30px;
padding: 0;
color: #03e9f4;;
text-align: center;
}
.login-box .user-box {
position: relative;
}
.login-box .user-box input {
width: 100%;
padding: 10px 0;
font-size: 16px;
color: #03e9f4;
margin-bottom: 30px;
border-left: #03e9f4;
box-shadow: 0px 4px 8px 0 rgba(11, 252, 119, 0.514), 0px 20px 40px 1px rgba(9, 252, 211, 0.596);
border-top:#03e9f4;
border-color:rgb(251, 253, 252);
border-bottom: 1px solid #03e9f4 ;
outline: none;
background: transparent;
}
.login-box .user-box label {
position: absolute;
top:0;
left: 0;
padding: 10px 0;
font-size: 16px;
color: #03e9f4;
pointer-events: none;
transition: .5s;
}
.login-box .user-box input:focus ~ label,
.login-box .user-box input:valid ~ label {
top: -20px;
left: 0;
color: rgb(36, 248, 213);
font-size: 12px;
}
.login-box .user input {
width: 100%;
padding: 10px 0;
font-size: 16px;
color: #03e9f4;
margin-bottom: 30px;
border-left: hsl(183, 98%, 48%);
box-shadow:0px 4px 8px 0 rgba(11, 252, 119, 0.514), 0px 20px 40px 10px rgba(9, 252, 211, 0.596);
border-top:#03e9f4;
border-color:rgb(251, 253, 252);
border-bottom: 1px solid #03e9f4 ;
outline: none;
background: transparent;
}
.login-box .user label {
position: absolute;
top:0;
left: 0;
padding: 10px 0;
font-size: 16px;
color: #03e9f4;
pointer-events: none;
transition: .5s;
}
.login-box .user input:focus ~ label,
.login-box .user input:valid ~ label {
top: -20px;
left: 0;
color: rgb(36, 248, 213);
font-size: 12px;
}
.login-box .user {
position: relative;
}
.login-box form a {
position: relative;
display: inline-block;
padding: 10px 20px;
color: #03e9f4;
font-size: 16px;
text-decoration: none;
text-transform: uppercase;
overflow: hidden;
transition: .5s;
margin-top: 40px;
letter-spacing: 4px
}
.login-box a:hover {
background: #03e9f4;
color: #fff;
border-radius: 5px;
box-shadow: 0 0 5px #03e9f4,
0 0 25px #03e9f4,
0 0 50px #03e9f4,
0 0 100px #03e9f4;
}
.login-box a span {
position: absolute;
display: block;
}
.login-box a span:nth-child(1) {
top: 0;
left: -100%;
width: 100%;
height: 2px;
border-color:#03e9f4;
background: linear-gradient(90deg, transparent, #03e9f4);
animation: btn-anim1 1s linear infinite;
}
@keyframes btn-anim1 {
0% {
left: -100%;
}
50%,100% {
left: 100%;
}
}
.login-box a span:nth-child(2) {
top: -100%;
right: 0;
width: 2px;
height: 100%;
background: linear-gradient(180deg, transparent, #03e9f4);
animation: btn-anim2 1s linear infinite;
animation-delay: .25s
}
@keyframes btn-anim2 {
0% {
top: -100%;
}
50%,100% {
top: 100%;
}
}
.login-box a span:nth-child(3) {
bottom: 0;
right: -100%;
width: 100%;
height: 2px;
background: linear-gradient(270deg, transparent, #03e9f4);
animation: btn-anim3 1s linear infinite;
animation-delay: .5s
}
@keyframes btn-anim3 {
0% {
right: -100%;
}
50%,100% {
right: 100%;
}
}
.login-box a span:nth-child(4) {
bottom: -100%;
left: 0;
width: 2px;
height: 100%;
background: linear-gradient(360deg, transparent, #03e9f4);
animation: btn-anim4 1s linear infinite;
animation-delay: .75s
}
@keyframes btn-anim4 {
0% {
bottom: -100%;
}
50%,100% {
bottom: 100%;
}
}
</style>
</body>
</html>

0 Comments