-
Notifications
You must be signed in to change notification settings - Fork 108
/
Copy pathDyls00_afraid-newt-19.html
55 lines (49 loc) · 1.05 KB
/
Dyls00_afraid-newt-19.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
<div class="tooltip-container">
<span class="tooltip">Uiverse.io</span>
<span class="text">Tooltip</span>
</div>
<style>
/* From Uiverse.io by Dyls00 - Tags: tooltip, smooth, cube, colorful, custom */
/* This is an example, feel free to delete this code */
.tooltip-container {
--background: #ee6d22;
position: relative;
background: var(--background);
cursor: pointer;
transition: all 0.2s;
border-radius: 15px;
font-size: 25px;
padding: 0.7em 1.8em;
}
.tooltip {
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
padding: 0.3em 0.6em;
opacity: 0;
pointer-events: none;
transition: all 0.3s;
border-radius: 15px;
font-size: 50px;
margin-top: 90%;
background: black;
}
.tooltip::before {
position: absolute;
content: "";
height: 0.6em;
width: 0.6em;
bottom: 1.8em;
left: 50%;
transform: translate(-50%) rotate(180deg);
background: var(--background);
}
.tooltip-container:hover .tooltip {
top: -100%;
opacity: 1;
color: white;
visibility: visible;
pointer-events: auto;
}
</style>