Posted in Tool Documentation
1993
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
56
This Month
235
This Year
605

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
When i was a little kid, I was really scared of the dark. But then I came to understand, dark just means the absence of photons in the visible wavelength -- 400 to 700 nanometers. Then i thought, well, its really silly to be afraid of a lack of photons. Then i wasn't afraid of the dark anymore after that.
Elon Musk
Random CSS Property

mask-repeat

The mask-repeat CSS property sets how mask images are repeated. A mask image can be repeated along the horizontal axis, the vertical axis, both axes, or not repeated at all.
mask-repeat css reference