I have this red PNG image that has variable transparency, but I need to display it on the web page as white with variable transparency. I think this can only be two ways:
- Set the background color to white, but somehow use the PNG alpha channel to set its transparency.
- Somehow, de-saturate PNG or change your color palette to white only.
I am only allowed to use CSS to achieve this; otherwise, I would consider other options.
Change I only need this to work in Safari (webkit). Sorry, I haven't mentioned this before.
source share