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

Create Neon_hover_button.html #56

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
58 changes: 58 additions & 0 deletions Neon_hover_button.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Neon Button Hover Effect</title>
<style>
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #1e1e1e;
}
.button {
padding: 14px 30px;
font-size: 18px;
font-weight: bold;
color: #fff;
background-color: transparent;
border: 2px solid #00f0ff;
border-radius: 10px;
cursor: pointer;
text-transform: uppercase;
letter-spacing: 2px;
position: relative;
z-index: 1;
transition: color 0.3s ease, box-shadow 0.4s ease, transform 0.2s ease;
margin: 10px;
box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}
.button:hover {
color: #00f0ff;
box-shadow: 0 0 15px #00f0ff, 0 0 30px #00f0ff, 0 0 45px #00f0ff;
transform: translateY(-5px);
}
.button:focus {
outline: none;
box-shadow: 0 0 15px #00f0ff, 0 0 30px #00f0ff, 0 0 45px #00f0ff;
}
.button-secondary {
border-color: #ff00c8;
box-shadow: 0 0 20px rgba(255, 0, 200, 0.5);
}

.button-secondary:hover {
color: #ff00c8;
box-shadow: 0 0 15px #ff00c8, 0 0 30px #ff00c8, 0 0 45px #ff00c8;
}

</style>
</head>
<body>
<button class="button">Book Now</button>
<button class="button button-secondary">Learn More</button>
</body>
</html>