A horizontal row of tags or cards needs a hint that there is more to the right. A fade does that well, and with a mask it works on any background, not only a plain white one.
.tag-row {
display: flex;
gap: 0.5rem;
overflow-x: auto;
mask-image: linear-gradient(to right, black 85%, transparent);
}
A mask uses the alpha of an image to decide what stays visible. Black (or any opaque color) shows the element, transparent hides it. The gradient keeps the first 85 percent fully visible and fades the last part to nothing.
The older trick, which I’d avoid now, is an overlay with a gradient from transparent to the background color. That breaks on a photo or a dark mode background, because the overlay color has to match. A mask has no color of its own, so it fits anywhere.
Chrome supports the unprefixed property since version 120, Safari since 15.4 and Firefox since 53. For older Chromium based browsers you can add the same value as -webkit-mask-image.
The caveat: the fade stays when someone has scrolled to the end, so the last item looks cut off. Scroll-driven animations or a small script that toggles the mask at the end fix that, or leave some padding after the last item.
Further reading: MDN: mask-image