I have a full screen fixed background image. I would like the text in my scrolling div to fade out at the top, presumably by applying a gradient mask to the background at only the top part of the div. I'm interested in having the text look like it fades away as it the user scrolls down, but still having a large area of full opacity for actually reading the text.
I know there are masking options in the webkit, but I can't find a way to fade through to the page's background 完毕 the contained text only applying the gradient to a small portion of the element.
Here's an image of the desired result: