Skip to content

Commit 88b8db3

Browse files
authored
Merge pull request #983 from vaishnavi-parodkar/Button-Pulse-Effect
Add Pulse Effect Button
2 parents 7aa070c + c4796ff commit 88b8db3

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Pulse Effect Button (Hover)</title>
7+
<style>
8+
body {
9+
background: linear-gradient(135deg, #141E30, #243B55);
10+
height: 100vh;
11+
display: flex;
12+
justify-content: center;
13+
align-items: center;
14+
}
15+
16+
.pulse-btn {
17+
background-color: #00bcd4;
18+
color: white;
19+
border: none;
20+
border-radius: 50px;
21+
padding: 15px 40px;
22+
font-size: 18px;
23+
cursor: pointer;
24+
position: relative;
25+
outline: none;
26+
text-transform: uppercase;
27+
letter-spacing: 1px;
28+
transition: background 0.3s ease;
29+
}
30+
31+
.pulse-btn:hover {
32+
background-color: #0199a9;
33+
animation: pulse 2s infinite;
34+
}
35+
36+
@keyframes pulse {
37+
0% {
38+
box-shadow: 0 0 0 0 rgba(0, 188, 212, 0.7);
39+
}
40+
70% {
41+
box-shadow: 0 0 0 20px rgba(0, 188, 212, 0);
42+
}
43+
100% {
44+
box-shadow: 0 0 0 0 rgba(0, 188, 212, 0);
45+
}
46+
}
47+
</style>
48+
</head>
49+
<body>
50+
51+
<button class="pulse-btn">Hover Me</button>
52+
53+
</body>
54+
</html>

0 commit comments

Comments
 (0)