Is there a way to invert only part of the image? I have a "selector bar" and I want the selected icon to be inverted. Unfortunately, this looks very bad when the panel switches to another selection, as the icon immediately changes color. The "selector" should slide along the strip during the transition.
A simple example of what I'm saying can be found here.
The best solution I can come up with right now is to place a new, inverted image on the selector element and move the image in the opposite direction in which the selector is moving. This would create the illusion that the fragment of the image that is covered is inverted. Is this really the best way to do this?
javascript html css image
Ledivin Sep 14 2018-12-12T00: 00Z
source share