Only transition opacity
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
.tooltip {
|
||||
--tooltip-delay: 750ms;
|
||||
--tooltip-duration: 150ms;
|
||||
--tooltip-offset: -85%;
|
||||
|
||||
.for-screen-reader {
|
||||
background: var(--color-ink);
|
||||
@@ -15,18 +14,18 @@
|
||||
opacity: 0;
|
||||
padding: 0.25ch 1ch;
|
||||
transition: var(--tooltip-duration) ease-out allow-discrete;
|
||||
transition-property: opacity, translate;
|
||||
translate: -50% var(--tooltip-offset);
|
||||
transition-property: opacity;
|
||||
translate: -50% -100%;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
&.orient-right {
|
||||
inset-inline-start: 0;
|
||||
translate: 0 var(--tooltip-offset);
|
||||
translate: 0 -100%;
|
||||
}
|
||||
|
||||
&.orient-left {
|
||||
inset-inline-end: 0;
|
||||
translate: 0 var(--tooltip-offset);
|
||||
translate: 0 -100%;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user