Posted in Tool Documentation
1942
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
61
This Month
184
This Year
554

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
I believe that success can be measured in the number of uncomfortable conversations you're willing to have.
Unknown
Random CSS Property

border-left-color

The border-left-color CSS property sets the color of an element's left border. It can also be set with the shorthand CSS properties border-color or border-left.
border-left-color css reference