Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

With CSS, can I increase the contrast of background-image upon hover?

Tags:

html

css

I have looked into other threads about this, but they all suggest to play around with opacity and tranparency.

But I want to do the opposite: increase contrast of background image (while using the same BG image), or some other way of achieving something similar.

Thanks a lot in advance. Regards

like image 391
alexx0186 Avatar asked Sep 11 '12 04:09

alexx0186


1 Answers

Try putting the background on top of a plain black background, setting the opacity to 0.8 or 0.9, then setting it to 1.0 on hover.

like image 156
Jonathon Ashworth Avatar answered Oct 12 '22 03:10

Jonathon Ashworth