Selector - Logical Pseudo-Class

About

Logical Pseudo-class are:

  • :matches
  • :not
  • :has

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;
}

Powered by ComboStrap