Grayscale only on part of the image?
1 answer
I've done something like this before to achieve this ...
- Use
div
and set itbackground-image
to the image. - Install
background-position
and fix it so that it looks like the same image. - Use CSS to set grayscale to
div
.
jsFiddle .
For what you are doing, I could make it a black background with opacity
set as needed and a top inset for the top effect.
+6
source to share