-
Notifications
You must be signed in to change notification settings - Fork 105
/
gouthamnetha02_strong-zebra-90.html
64 lines (56 loc) · 1.16 KB
/
gouthamnetha02_strong-zebra-90.html
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<div class="tooltip">
<button>Hover Me!</button>
<div class="tooltiptext">You Hovered Me!</div>
</div>
<style>
/* From Uiverse.io by gouthamnetha02 - Tags: tooltip, red, hover, color, hover effect, css, css effect */
.tooltip {
position: relative;
display: inline-block;
cursor: pointer;
}
.tooltip button {
background-color: #db3434;
color: #fff;
border: none;
padding: 10px 20px;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s, transform 0.2s ease-out;
}
.tooltip button:hover {
background-color: #b92929;
transform: scale(1.05);
}
.tooltip:hover .tooltiptext {
visibility: visible;
opacity: 1;
}
.tooltiptext {
visibility: hidden;
width: 160px;
background-color: #333;
color: #fff;
text-align: center;
border-radius: 8px;
padding: 5px;
position: absolute;
z-index: 1;
bottom: 125%;
left: 50%;
margin-left: -80px;
opacity: 0;
transition: opacity 0.3s;
}
.tooltiptext::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: #333 transparent transparent transparent;
}
</style>