opacity
The CSS property that sets how see-through an element is, from 0 for invisible to 1 for fully solid.
In more detail
Like transform, opacity can be animated by the compositor alone, so fades are cheap. An element at opacity 0 still takes space and can still receive clicks.
Related terms
- CSS transform — The CSS property that moves, rotates, scales or skews an element without changing the layout around it.
- compositing — The final rendering stage, in which separately painted layers are stacked and drawn together on screen, usually by the GPU.
Taught in
- Layout, Reflow, Paint And GPU Compositing Layers — Frontend Architecture & Web Platform
- Modern CSS Animations, Transitions And View Transitions API — Frontend Architecture & Web Platform