I am trying to make in CSS3 rectangular gradient like done with older:
filter: alpha(opacity=65, style=3)
Unfortunately mask-image
property (which i used in order to achieve elliptic ones) does not have rectangular-gradient option.
( pre CSS3 snippet )
.foto_1 { filter: alpha(opacity=65, style=0); }
.foto_2 { filter: alpha(opacity=65, style=1); }
.foto_3 { filter: alpha(opacity=65, style=2); }
.foto_4 { filter: alpha(opacity=65, style=3); }
<div class="div_2"><img src="https://i.sstatic.net/HGRgk.jpg" alt=""><img class="foto_1" src="https://i.sstatic.net/HGRgk.jpg" alt=""></div><div class="div_2"><img src="https://i.sstatic.net/HGRgk.jpg" alt=""><img class="foto_2" src="https://i.sstatic.net/HGRgk.jpg" alt=""></div><div class="div_2"><img src="https://i.sstatic.net/HGRgk.jpg" alt=""><img class="foto_3" src="https://i.sstatic.net/HGRgk.jpg" alt=""></div><div class="div_2"><img src="https://i.sstatic.net/HGRgk.jpg" alt=""><img class="foto_4" src="https://i.sstatic.net/HGRgk.jpg" alt=""></div>
(CSS3 what I was able to recreate was only first 3 pictures)
/* CSS3 */
.foto_1 { filter: opacity(65%); }
.foto_2 { filter: opacity(65%); mask-image: linear-gradient(to left, transparent, black); }
.foto_3 { filter: opacity(65%); mask-image: radial-gradient(circle, black, transparent 65%); }
.foto_4 { filter: opacity(65%); }
<div class="div_2"><img src="https://i.sstatic.net/HGRgk.jpg" alt=""><img class="foto_1" src="https://i.sstatic.net/HGRgk.jpg" alt=""></div>
<div class="div_2"><img src="https://i.sstatic.net/HGRgk.jpg" alt=""><img class="foto_2" src="https://i.sstatic.net/HGRgk.jpg" alt=""></div>
<div class="div_2"><img src="https://i.sstatic.net/HGRgk.jpg" alt=""><img class="foto_3" src="https://i.sstatic.net/HGRgk.jpg" alt=""></div>
<div class="div_2"><img src="https://i.sstatic.net/HGRgk.jpg" alt=""><img class="foto_4" src="https://i.sstatic.net/HGRgk.jpg" alt=""></div>