forked from mevipinmaurya/hbtuHacktoberfest2025
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcool_hover_button.html
More file actions
44 lines (41 loc) · 1.17 KB
/
cool_hover_button.html
File metadata and controls
44 lines (41 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cool Hover Button</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #f4f4f9;
font-family: sans-serif;
}
.fancy-button {
padding: 15px 30px;
font-size: 1.2em;
color: #ffffff;
background-color: #007bff;
border: none;
border-radius: 8px;
cursor: pointer;
transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.fancy-button:hover {
background-color: #0056b3;
transform: translateY(-3px);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
.fancy-button:active {
transform: translateY(0);
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}
</style>
</head>
<body>
<button class="fancy-button">Hover Over Me</button>
</body>
</html>