Ive got a site with a bunch of png icons, they are all black and white images - a black logo on a white background.
At the moment we have an on hover effect that hides the first png and reveals a inverted png behind, at the moment we are exporting 2 images : 1) black logo on white background, 2) white logo on background from photoshop.
This got me thinking is it possible to invert the png file with JS or possibly even new age CSS ?
(By invert i mean swap the black for white and visa versa white for black in the images)
Unfortunately these are 3rd party images which i have a .png files, if i had them as .svg i know i could invert the .svg 'on the fly'.