Posted in Tool Documentation
1941
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
60
This Month
183
This Year
553

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
The mind must be given relaxation; it will arise better and keener after resting. As rich fields must not be forced-for their productiveness, the have no rest, will quickly exhaust them constantlabor will break the vigor of the mind, but if it is released and relaxed a little while, it will recover its powers
Seneca
Random CSS Property

animation-iteration-count

The animation-iteration-count CSS property sets the number of times an animation sequence should be played before stopping.
animation-iteration-count css reference