Posted in Tool Documentation
1590
4:34 am, August 16, 2022
 

CSS Filter Generator from Hex Code

I was looking for a quick way to apply a new color to a PNG image, which i did not really want to have to edit and thought there might be a CSS solution. 

I found a tool for this here CSS Filter Generator from Hex Code, so all you have to do is add your hex code to this tool and it will generate a filter for you. 

Basically all you need is the hex code. 

Paste it into the tool and it will generate a filter. 

now grab the generated filter and apply it to a css class. 

CSS

.logochange { filter: invert(40%) sepia(89%) saturate(665%) hue-rotate(153deg) brightness(104%) contrast(103%); }

I moved this code into a code snippet here to show how it works with the logo image. 

View Statistics
This Week
19
This Month
96
This Year
202

No Items Found.

Add Comment
Type in a Nick Name here
 
Other Items in Tool Documentation
Search Articles
Search Articles by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

Subscribe to weekly updates about things i have added to the site or thought interesting during the last week.

You could also follow me on twitter or not... does anyone even use twitter anymore?

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕

❤️👩‍💻🎮

🪦 2000 - 16 Oct 2022 - Boots
Random Quote
Even if you fall on your face, you're still moving forward.
Victor Kiam
Random CSS Property

border-inline-start-color

The border-inline-start-color CSS property defines the color of the logical inline start border of an element, which maps to a physical border color depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-color, border-right-color, border-bottom-color, or border-left-color property depending on the values defined for writing-mode, direction, and text-orientation.
border-inline-start-color css reference