<!-- ----------- Created by InCoder ----------- -->
<!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">
<title>Neon Glowing Button - InCoder</title>
<link rel="stylesheet" href="main.css">
</head>
<body>
<div class="wrapper">
<button class="success">Submit</button>
<button class="neon">Submit</button>
<button class="purple">Submit</button>
</div>
</body>
</html>
/* ----------- Created by InCoder ----------- */
* {
margin: 0;
padding: 0;
}
body {
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background-color: #202020;
}
.wrapper button {
font-size: 16px;
cursor: pointer;
margin-left: 1rem;
padding: 8px 30px;
border-radius: 20px;
text-transform: capitalize;
background-color: transparent;
transition: box-shadow .3s ease;
}
.success {
color: #fff;
border: 2px solid #3cc091;
}
.success:hover {
box-shadow: 0px 0px 20px 2px #3cc091, inset 0px 0px 30px 4px #3cc091;
}
.neon {
color: #fff;
border: 2px solid #03e9f4;
}
.neon:hover {
box-shadow: 0px 0px 20px 2px #03e9f4, inset 0px 0px 30px 4px #03e9f4;
}
.purple {
color: #fff;
border: 2px solid #7030a3;
}
.purple:hover {
box-shadow: 0px 0px 20px 2px #7030a3, inset 0px 0px 30px 4px #7030a3;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.