asp.net.ph

Skip Navigation Links

Hue-Rotate Filter Effect

CSS Attributes Index   CSS Filters


Applies a hue rotation to an input image.

Syntax:
{ filter: hue-rotate(angle) }

Possible Values


angle Floating point number representing an angle value expressed in degrees, gradians, radians, or turns.

The property is read/write with a default value of 0.

Remarks:

The hue-rotate( ) CSS function applies a color rotation to a visual object, effectively changing the element’s colors.

The passed parameter defines the relative change in the hue of the input sample, corresponding to an angle around the color wheel.

A value of 0 leaves the input unchanged.

A positive hue rotation increases the hue value, while a negative rotation decreases the hue value.

Example

Hue-Rotate with positive and negative values in degrees.

filter: hue-rotate(0deg)
filter: hue-rotate(90deg)
filter: hue-rotate(-90deg)

Hue-Rotate with positive and negative values in gradians.

filter: hue-rotate(0grad)
filter: hue-rotate(50grad)
filter: hue-rotate(-50grad)

Hue-Rotate with positive and negative values in radians.

filter: hue-rotate(0rad)
filter: hue-rotate(10rad)
filter: hue-rotate(-10rad)

Hue-Rotate with positive values in turns.

filter: hue-rotate(0turn)
filter: hue-rotate(.5turn)
filter: hue-rotate(.75turn)
See Also

grayscale   invert   opacity   saturate   sepia



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note