Fade image to transparent like a gradient
If you want this: You can do this: <html> <style type=”text/css”> div, img { position:absolute; top:0; left:0; width:250px; height:250px; } img { -webkit-mask-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,1)), to(rgba(0,0,0,0))); mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0)); } </style> <body> <div>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet porttitor massa. Morbi eget tortor congue, aliquet … Read more