.nb-strip-button {
    -webkit-user-select: none;
    user-select: none;
    transform-style: preserve-3d;
    cursor: pointer;

    text-decoration: none;
    display: grid;
    width: fit-content;
    -webkit-tap-highlight-color: transparent;

    --elastic-ease-out: linear( 0, 0.5737 7.6%, 0.8382 11.87%, 0.9463 14.19%, 1.0292 16.54%, 1.0886 18.97%, 1.1258 21.53%, 1.137 22.97%, 1.1424 24.48%, 1.1423 26.1%, 1.1366 27.86%, 1.1165 31.01%, 1.0507 38.62%, 1.0219 42.57%, 0.9995 46.99%, 0.9872 51.63%, 0.9842 58.77%, 1.0011 81.26%, 1 );
    --smooth-ease: cubic-bezier(.32, .72, 0, 1);
}
.nb-strip-button__bg {
    grid-area: 1 / 1;
    overflow: clip;
}
.nb-strip-button__inner {
    grid-area: 1 / 1;
    display: grid;
    translate: 0;
}
.nb-strip-button__inner::before {
    content: attr(data-text);
    grid-area: 1 / 1;
    scale: 0;
    pointer-events: none;
    transition: scale var(--strip-duration) var(--smooth-ease);
}
.nb-strip-button__text {
    transition: scale var(--strip-duration) var(--smooth-ease);
    grid-area: 1 / 1;
}
.nb-strip-button[data-from="left"] .nb-strip-button__inner::before {
    transform-origin: left center;
}
.nb-strip-button[data-from="left"] .nb-strip-button__text {
    transform-origin: right center;
}
.nb-strip-button[data-from="right"] .nb-strip-button__inner::before {
    transform-origin: right center;
}
.nb-strip-button[data-from="right"] .nb-strip-button__text {
    transform-origin: left center;
}
@media (hover: hover) and (pointer: fine) {
    .nb-strip-button:is(:hover, :focus-visible) .nb-strip-button__text {
        scale: 0;
    }
    .nb-strip-button:is(:hover, :focus-visible) .nb-strip-button__inner::before {
        scale: 1;
    }
}