Skip to content
English
Looks cheap26 / 71

Fade the scrolling edge

What it's calledEdge fadescroll fade maskGlossary

What goes wrong

A row of chips cut off hard at the edge looks broken, and nothing tells people they can scroll to see the rest.

The fix

Fade the content out over the last few pixels on each side where more is hidden.

Tell your AI

Fade horizontal scrollers over var(--ds-space-32) (32px) on each side that hides content, with mask-image: linear-gradient(to right, transparent, black var(--ds-space-32), black calc(100% - var(--ds-space-32)), transparent), and drop the fade on a side once it is scrolled to its end; space the items var(--ds-space-8) (8px) apart.

  • --ds-space-3232px
  • --ds-space-88px
Why AI-generated UIs all look the same: 12 rules that fix it

What's for dinner

24 recipes under 30 minutes

AllBowlsPastaSoupsSaladsCurriesDesserts
Miso bowl12 min
Pumpkin soup25 min
Green salad10 min
One-pot stew28 min
Berry tart20 min

Cut off hard: looks broken