Summary of what I'm trying to achieve: I want to make my entire website in grayscale or saturation 0 and a div which follows the cursor to display the colors under that "mask" or div which acts like a mask.
I tried different approaches for this but I can't get it. I tried using CSS, with filter property or backdrop-filter. I tried finding the solution with Google Web Designer
In GWD the mask works just in one way, not like in photoshop.For example, in photoshop you can pun a top layer to remove the saturation than put a mask on it and reverse the mask to for it to apply outside the area created.
But in GoogleWebDesigner the mask is only applied on the area created, you can reverse it mask in googlewebdesigner
Do you have other suggestions how to approach this ? another method
This is possible using a combination of
clip-path(documentation) andbackdrop-filter(documentation). These are both quite new, so check whether they are suitable for you browser support requirements.Most of the explanation is in the code comments, but a basic summary:
backdrop-filterto make everything greyscale.