Selector - Logical Pseudo-Class

> (World Wide) Web - (W3|WWW) > Selector API

1 - About

Logical Pseudo-class are:

  • :matches
  • :not
  • :has
Advertising

3 - Example

Example of a selector when the element has the class fade but not the class show, the opacity will be 0

.fade:not(.show) {
    opacity: 0;
}