I have a solid image, a .JPG, with no transparency (seeing as .JPG‘s cannot have an alpha layer). However, since the client would not have the ability to create an image that fades one image edge to transparency, they want to input a solid .JPG and have it fade via code. It should be noted that I’ve got this image set to be the background right now, it’s not the src of a <img> tag. Is this possible in CSS3 and if so, how would it be accomplished?
Example image:

Desired result:

I believe you can do something with the CSS3
mask-imageattribute along with CSS3linear-gradientbackground:Here is a sample that I created to you. Since it’s a new CSS3 thing compatible browsers are Chrome and Safari at this moment (Webkit browsers).