Color

Opacity vs visibility

Two ways to hide an element while keeping its layout space — opacity: 0 still receives pointer events; visibility: hidden does not.

opacity: 0 still catches clicks; visibility: hidden doesn't, but both keep the layout space.

taps on the hidden tile: 0
Opacity: 0 · select the gap: it counts

One of 266 cards in the Design deck. Browse every card.