User:Saag/common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 12: | Line 12: | ||
} | } | ||
.popover__content:before { | .popover__content:before { | ||
position: | position: relative; | ||
z-index: -1; | z-index: -1; | ||
content: ""; | content: ""; | ||
Line 27: | Line 27: | ||
transition: all 0.5s cubic-bezier(0.75, -0.02, 0.2, 0.97); | transition: all 0.5s cubic-bezier(0.75, -0.02, 0.2, 0.97); | ||
} | } | ||
Revision as of 19:05, 6 September 2024
.popover__wrapper {
position: relative;
display: inline-block;
}
.popover__content {
opacity: 0;
visibility: hidden;
position: absolute;
left: 300px;
transform: translate(0, 10px);
width: auto;
}
.popover__content:before {
position: relative;
z-index: -1;
content: "";
right: calc(50% - 10px);
top: -8px;
transition-duration: 0.3s;
transition-property: transform;
}
.popover__wrapper:hover + .popover__content {
z-index: 10;
opacity: 1;
visibility: visible;
transform: translate(0, -20px);
transition: all 0.5s cubic-bezier(0.75, -0.02, 0.2, 0.97);
}