I took Zach's answer and added:
.filtered:before { transition: 2s -webkit-mask-size; -webkit-mask-position: top left; -webkit-mask-size: 0px 0px; -webkit-mask-image: linear-gradient(131deg, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0) 40%); -webkit-mask-repeat: no-repeat; } .filtered:hover:before { -webkit-mask-size: 600px 600px; }
Now in the upper left corner there is a cleaning effect.
demo
Please note that we do not animate the filter by itself, but the transparency (in that case masking) of the layer on which the filter is applied.
Also note that you have many opportunities for the game, creating various gradients for masking.
In addition, the effect was hardly visible, so I added a brightness factor in shades of gray (for demonstration only)
Of course, all this is limited to webkit
vals
source share