Press/to search

Filters

Backdrop Saturate v1.1.0

Utilities for sets filter backdrop saturate effect to an element.


Class

classcss
backdrop-filter {saturate}backdrop-filter: brightness(var(--brightness)) contrast(var(--contrast)) saturate(var(--saturate)) blur(var(--blur))
Note: Your browser does not currently support the utilities.
classcss
saturate-0--backdrop-saturate: 0
saturate-1--backdrop-saturate: 1
saturate-2--backdrop-saturate: 1.10
saturate-3--backdrop-saturate: 1.20
saturate-4--backdrop-saturate: 1.30
saturate-5--backdrop-saturate: 1.40
saturate-6--backdrop-saturate: 1.50
saturate-7--backdrop-saturate: 1.60
saturate-8--backdrop-saturate: 1.70
saturate-9--backdrop-saturate: 1.80
saturate-10--backdrop-saturate: 1.90

Usage

Filter: OFFFilter: ON

Apply the backdrop-filter class first, and then set the filter in any order when with other filters.

<!-- Example -->
<y style="background-image:url(...)">
<y class="backdrop-filter saturate-10 ... bg-gray-100 bg-opacity-50">
...
</y>
</y>

<y class="relative ...">
<img src="...">
<y class="absolute top-0 left-0">
<y class="backdrop-filter saturate-10 ... bg-gray-100 bg-opacity-50">
...
</y>
</y>
</y>

Mix with other filters, such as Backdrop Brightness, Backdrop Contrast, and Backdrop Blur.

<!-- Example -->
<y style="background-image:url(...)">
<y class="backdrop-filter saturate-10 brightness-1 saturate-1 blur-2 ... bg-gray-100 bg-opacity-50">
...
</y>
</y>

<y class="relative ...">
<img src="...">
<y class="absolute top-0 left-0">
<y class="backdrop-filter saturate-10 brightness-1 saturate-1 blur-2 ... bg-gray-100 bg-opacity-50">
...
</y>
</y>
</y>

Customization

Read more information about using the Plugin API, and Responsive or Pseudo-Class Variants configuration with the Plugin API.

// Add Values
@include yogurt(
$class: 'backdrop.saturate',
$property: --backdrop-saturate,
$modifier: (
1: 1.10,
2: 2.20
//...
)
);

Variant

ResponsiveDark ModeLight ModeReduce-MotionPortraitLandscapeHoverGroup-HoverFocusGroup-FocusFocus-VisibleFocus-WithinActiveVisitedCheckedDisabled

Default enabled variants. Read more information about the Responsive and Pseudo-Class Variants.