File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed
Button/Pulse Effect Button (Hover) Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments