You can place a div above the image (or perhaps some pseudo-element), give it the desired gradient from black to transparent, and then apply the CSS mix-blend-mode rule.
Then you can play with some of the filters to adjust the brightness, etc.
The simplest code would look like this:
<style> .graylayer{ width:1024px; height:576px; background:linear-gradient(to bottom,rgba(0,0,0,0),rgba(0,0,0,1)); mix-blend-mode:saturation; } img,div{ position:absolute; } </style> <img src="http://wallpapernesia.com/wp-content/uploads/2014/12/colorful_wallpaper_45_backgrounds-1024x576.jpg"/> <div class="graylayer"></div>
Xufox source share