Opacity

A value indicating how much a layer or element obscures the content beneath it. Ranges from 0% (fully transparent) to 100% (fully opaque).

Opacity measures how much a layer or UI element blocks the content behind it, expressed as a percentage from 0% (fully transparent) to 100% (fully opaque). It is the complement of transparency: 70% opacity equals 30% transparency.

Opacity and alpha channels are related but operate at different levels:

CSS provides two approaches to transparency:

In image editors, reducing layer opacity blends it with layers below. Applications include double-exposure effects in photography and semi-transparent colour overlays behind text.

The opacity property is used for fade-in and fade-out transitions, combined with transition or @keyframes.

Related Terms

Related Articles