Loading Please Wait...

Logo Lynxsia IT Solutions

CSS Filters

CSS Filters

The CSS filter property applies graphical effects like blur or color shift to an element. Filters are commonly used to adjust the rendering of images, backgrounds, and borders.

Filter Functions
blur() Function

Applies a Gaussian blur to the input image.

					 
        
          filter: blur(5px);
        
      
brightness() Function

Applies a linear multiplier to the input image, making it appear more or less bright. Values are linear multipliers on the effect, with 0% creating a completely black image, 100% having no effect, and values over 100% brightening the image.

					 
        
          filter: brightness(2);
        
      
contrast() Function

Adjusts the contrast of the input image. A value of 0% makes the image grey, 100% has no effect, and values over 100% create a contrast.

					 
        
          filter: contrast(200%);
        
      
drop-shadow() Function

Applies the parameter shadow as a drop shadow, following the contours of the image.

					 
        
          filter: drop-shadow(16px 16px 10px black);
        
      
grayscale() Function

Converts the image to grayscale. A value of 100% is completely grayscale. The initial value of 0% leaves the input unchanged. Values between 0% and 100% produce linear multipliers on the effect.

					 
        
          filter: grayscale(100%);
        
      
hue-rotate() Function

Applies a hue rotation. The angle value defines the number of degrees around the hue color circle at which the input samples will be adjusted. A value of 0deg leaves the input unchanged.

					 
        
          filter: hue-rotate(90deg);
        
      
invert() Function

Inverts the samples in the input image. A value of 100% completely inverts the image. A value of 0% leaves the input unchanged. Values between 0% and 100% have linear multipliers on the effect.

					 
        
          filter: invert(100%);
        
      
opacity() Function

Applies transparency. 0% makes the image completely transparent and 100% leaves the image unchanged.

					 
        
          filter: opacity(50%);
        
      
saturate() Function

Saturates the image, with 0% being completely unsaturated, 100% leaving the image unchanged, and values of over 100% increasing saturation.

					 
        
          filter: saturate(200%);
        
      
sepia() Function

Converts the image to sepia, with a value of 100% making the image completely sepia and 0% making no change.

					 
        
          filter: sepia(100%);
        
      
url() Function

Use other resource (image) as filter.

					 
        
          filter: url("filters.svg#filter-id");
        
      
Multiple Functions

You may combine any number of functions to manipulate the rendering. The filters are applied in the order declared.

					 
        
          filter: contrast(175%) brightness(103%);
        
      

How you feel about this blog:

Share this blog on:

Report Us

If you find any error in the turtorials, or want to share your suggestion/feedback, feel free to send us email at: info@lynxsia.com

Contact Us
Ads
Logo
Lynxsia IT Solutions

We are concern with various development process like website design & development, E-commerce development, Software development, Application development, SMS & Bulk SMS Provider, PWA Development, and many more..

Kotwali Road, Chhiptehri, Banda, 210001, UP, India

Copyright © 2022, Lynxsia IT Solutions, All rights reserved