@mixin text-with-fade-effect($fadeWidth) {
    mask-image: linear-gradient(
        to right,
        rgb(0, 0, 0) calc(100% - $fadeWidth),
        rgba(0, 0, 0, 0.5) calc(100% - $fadeWidth + 5px),
        rgba(0, 0, 0, 0) calc(100% - $fadeWidth + 15px),
        rgba(0, 0, 0, 0) 100%
    );
}
