Monday, November 26, 2018

Can HTML and CSS only create an overlay which ignores transparent area on an image automatically?

For example, it has an image with a transparent background:




Enter image description here



And I would like to add an gray overlay (for example, a div, or canvas...) on it:



Enter image description here



But I want the overlay ignores transparent area on an image automatically:



Enter image description here




Can pure HTML and CSS (for example, by div, canvas...) do this?

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...