-
Notifications
You must be signed in to change notification settings - Fork 105
/
vinodjangid07_mighty-elephant-52.html
83 lines (77 loc) · 1.66 KB
/
vinodjangid07_mighty-elephant-52.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<div class="tooltip-container">
<span class="tooltip">45k</span>
<span class="text">
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 95 114"
class="svgIcon"
>
<rect fill="black" rx="28.5" height="57" width="57" x="19"></rect>
<path
fill="black"
d="M0 109.5C0 83.2665 21.2665 62 47.5 62V62C73.7335 62 95 83.2665 95 109.5V114H0V109.5Z"
></path>
</svg>
Follow</span
>
</div>
<style>
/* From Uiverse.io by vinodjangid07 - Tags: tooltip, animation, social, hover, social media, follow, hover effect */
.tooltip-container {
display: flex;
align-items: center;
justify-content: center;
position: relative;
transition: all 0.3s;
background-color: rgb(255, 255, 255);
padding: 11px 18px;
border-radius: 12px;
cursor: pointer;
border: 1px solid rgb(211, 211, 211);
}
.text {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
font-size: 14px;
font-weight: 600;
color: rgb(0, 0, 0);
}
.svgIcon {
width: 16px;
height: auto;
}
.tooltip {
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
padding: 0.3em 0.6em;
opacity: 0;
pointer-events: none;
transition: all 0.3s;
background-color: rgb(255, 255, 255);
border-radius: 12px;
color: rgb(34, 34, 34);
}
.tooltip::before {
position: absolute;
content: "";
height: 0.6em;
width: 0.6em;
bottom: -0.2em;
left: 50%;
transform: translate(-50%) rotate(45deg);
background-color: rgb(255, 255, 255);
}
.tooltip-container:hover .tooltip {
top: -100%;
opacity: 1;
visibility: visible;
pointer-events: auto;
}
</style>