-
Notifications
You must be signed in to change notification settings - Fork 105
/
Yaya12085_average-earwig-11.html
107 lines (98 loc) · 2.47 KB
/
Yaya12085_average-earwig-11.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<div class="tooltip-container">
<span class="tooltip">Uiverse.io</span>
<span class="text">@</span>
</div>
<style>
/* From Uiverse.io by Yaya12085 - Tags: tooltip, icon, message, custom */
.tooltip-container {
height: 70px;
width: 110px;
border-radius: 5px;
background-color: #fff;
background-image: linear-gradient(
to left bottom,
#f2f5f8,
#ecf1f2,
#e7eceb,
#e3e7e4,
#e1e2de
);
border: 1px solid white;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.151);
position: relative;
transition: transform 0.3s ease;
}
.tooltip-container::before {
position: absolute;
content: "";
top: -50%;
clip-path: polygon(50% 0, 0 100%, 100% 100%);
border-radius: 5px;
background-color: fff;
background-image: linear-gradient(
to left bottom,
#f2f5f8,
#e4eaec,
#d8dfde,
#cdd3cf,
#c5c7c1
);
width: 100%;
height: 50%;
transform-style: preserve-3d;
transform: perspective(1000px) rotateX(-150deg) translateY(-110%);
transition: transform 0.3s ease;
}
.tooltip-container .text {
color: rgb(32, 30, 30);
font-weight: bold;
font-size: 40px;
}
.tooltip {
position: absolute;
top: -20px;
opacity: 0;
background: linear-gradient(-90deg, rgba(0, 0, 0, 0.05) 1px, white 1px),
linear-gradient(rgba(0, 0, 0, 0.05) 1px, white 1px),
linear-gradient(-90deg, rgba(0, 0, 0, 0.04) 1px, white 1px),
linear-gradient(rgba(0, 0, 0, 0.04) 1px, white 1px),
linear-gradient(white 3px, #f2f2f2 3px, #f2f2f2 78px, white 78px),
linear-gradient(-90deg, #aaa 1px, white 1px),
linear-gradient(-90deg, white 3px, #f2f2f2 3px, #f2f2f2 78px, white 78px),
linear-gradient(#aaa 1px, white 1px), #f2f2f2;
background-size: 4px 4px, 4px 4px, 80px 80px, 80px 80px, 80px 80px, 80px 80px,
80px 80px, 80px 80px;
padding: 5px 10px;
border: 1px solid rgb(206, 204, 204);
height: 70px;
width: 110px;
border-radius: 5px;
display: flex;
align-items: center;
justify-content: center;
transition-duration: 0.2s;
pointer-events: none;
letter-spacing: 0.5px;
font-size: 18px;
font-weight: 600;
text-shadow: 10px salmon;
}
.tooltip-container:hover {
border-top-left-radius: 0;
border-top-right-radius: 0;
}
.tooltip-container:hover::before {
transform: rotateY(0);
background-image: none;
background-color: white;
}
.tooltip-container:hover .tooltip {
top: -90px;
opacity: 1;
transition-duration: 0.3s;
}
</style>