Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

css change image color

/* use a black image */

/* change image color to white */
filter: invert(100%) sepia(16%) saturate(7463%) hue-rotate(222deg) brightness(119%) contrast(115%);

/* change image color to red */
filter: invert(16%) sepia(99%) saturate(7404%) hue-rotate(4deg) brightness(95%) contrast(118%);

/* change image color to green */
filter: invert(26%) sepia(89%) saturate(1583%) hue-rotate(95deg) brightness(96%) contrast(106%);

/* change image color to blue */
filter: invert(10%) sepia(90%) saturate(5268%) hue-rotate(245deg) brightness(109%) contrast(155%);
Source by codepen.io #
 
PREVIOUS NEXT
Tagged: #css #change #image #color
ADD COMMENT
Topic
Name
5+4 =