Assuming an element is at 100% saturation, opacity, etc... how can I have its background become slightly lighter when it is hovered?
The use case is that I'm allowing a user to hover over any element on a page. I don't want to go around determining each colors equivalent at 80% opacity.
One method is to change the opacity: 0.4
but I only want the background to change.
I'm using box-shadow property to control the brightness of the background color, by placing a translucent overlay
Example: