🌐 Pulse Glow Button
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Modern Glow-in-the-Dark Button</title>
<style>
/* Global Style */
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background: radial-gradient(circle, #1a1a2e, #0f3460);
font-family: 'Poppins', sans-serif;
overflow: hidden;
}
/* Button Style */
.modern-glow-button {
padding: 15px 50px;
font-size: 18px;
font-weight: bold;
text-transform: uppercase;
color: #fff;
background: linear-gradient(135deg, #6a11cb, #2575fc);
border: none;
border-radius: 50px;
cursor: pointer;
position: relative;
overflow: hidden;
box-shadow: 0 0 20px rgba(106, 17, 203, 0.6), 0 0 40px rgba(37, 117, 252, 0.6), 0 0 80px rgba(106, 17, 203, 0.4);
transition: all 0.3s ease;
}
.modern-glow-button::before {
content: "";
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
transform: rotate(45deg);
transition: opacity 0.3s ease;
}
.modern-glow-button:hover::before {
opacity: 1;
}
.modern-glow-button:hover {
transform: scale(1.1);
box-shadow: 0 0 30px rgba(106, 17, 203, 0.8), 0 0 60px rgba(37, 117, 252, 0.8), 0 0 100px rgba(106, 17, 203, 0.6);
}
.modern-glow-button:active {
transform: scale(0.95);
box-shadow: 0 0 15px rgba(106, 17, 203, 0.6), 0 0 30px rgba(37, 117, 252, 0.6), 0 0 50px rgba(106, 17, 203, 0.4);
}
/* Adding Stars to Background */
.background-stars {
position: absolute;
width: 100%;
height: 100%;
z-index: -1;
pointer-events: none;
}
.background-stars::before,
.background-stars::after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 200%;
height: 200%;
background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
animation: move-stars 10s linear infinite;
transform: translate(-50%, -50%);
pointer-events: none;
}
.background-stars::after {
animation-delay: -5s;
}
@keyframes move-stars {
0% {
transform: translate(-50%, -50%) scale(1);
}
100% {
transform: translate(-50%, -50%) scale(1.5);
}
}
</style>
</head>
<body>
<!-- Button -->
<button class="modern-glow-button">Glow</button>
<!-- Starry Background -->
<div class="background-stars"></div>
</body>
</html>