Filters & Blend Modes
What are CSS Filters?
CSS filters apply visual effects like blur, brightness, and saturation to elements. Perfect for images and creative effects!
Blur Filter
filter: blur() creates a Gaussian blur effect. Great for
backgrounds and focus effects.
Brightness & Contrast
Adjust brightness and contrast with brightness() and
contrast(). Values > 1 increase, < 1 decrease.
Grayscale & Sepia
Convert to grayscale or add vintage sepia tone. Values from 0 (none) to 1 (full effect).
Multiple Filters
Combine multiple filters by separating them with spaces. Order matters!
Backdrop Filter
backdrop-filter applies filters to the
area behind an element. Perfect for glassmorphism!
Blend Modes
mix-blend-mode controls how
elements blend with their background. Similar to
Photoshop blend modes!
blur() and
backdrop-filter, to
maintain good performance!
Summary
filter: blur()- Gaussian blurbrightness(),contrast()- Adjust lightinggrayscale(),sepia()- Color effectsbackdrop-filter- Filter background behind elementmix-blend-mode- Blend with background- Combine multiple filters with spaces
Quick Quiz
Which property filters the area behind an element?
Enjoying these tutorials?