41 lines
891 B
Plaintext
41 lines
891 B
Plaintext
.tooltip {
|
|
animation: bounce 1s ease-in-out infinite; /* Adjust the duration as needed */
|
|
}
|
|
|
|
/* Tooltip text */
|
|
.tooltip .tooltiptext {
|
|
width: 120px;
|
|
background-color: #ef4823;
|
|
color: #fff;
|
|
text-align: center;
|
|
padding: 18rpx 0;
|
|
border-radius: 6px;
|
|
/* Position the tooltip text - see examples below! */
|
|
position: absolute;
|
|
z-index: 1;
|
|
opacity: 0.75;
|
|
}
|
|
|
|
/* Show the tooltip text when you mouse over the tooltip container */
|
|
.tooltip:hover .tooltiptext {
|
|
}
|
|
.tooltip .tooltiptext::after {
|
|
content: " ";
|
|
position: absolute;
|
|
top: 100%; /* At the bottom of the tooltip */
|
|
left: 50%;
|
|
margin-left: -5px;
|
|
border-width: 5px;
|
|
border-style: solid;
|
|
border-color: #ef4823 transparent transparent transparent;
|
|
}
|
|
|
|
@keyframes bounce {
|
|
0%, 100% {
|
|
transform: translateY(0);
|
|
}
|
|
50% {
|
|
transform: translateY(10rpx); /* Adjust the bounce height as needed */
|
|
}
|
|
}
|