New: search page at /blog/search, JSON feed at /feed.json, and machine-readable search at /blog/search.json.
Back to blog
Design 1 minute read

Tag Tabs + Mobile Fade Masks

February 2, 2026

Tag Tabs + Mobile Fade Masks

AI SUMMARY

On small screens, render the tag row as `overflow-x-auto` with hidden scrollbar. Add a `mask-image` gradient to fade the left/right edges. On desktop, disable the mask and allow the pills to sit normally.

Maria Santos
Maria Santos
Design Lead
View author page

Share this article

On this page

Pill tabs are easy on desktop, but mobile needs a different treatment.

The goal

  • Horizontal scroll
  • No visible scrollbar
  • Subtle fade at the edges

CSS mask trick

We apply a mask-image gradient to the scrolling container, then remove it on larger screens.

More from this author

Maria Santos

Author page

More posts to read