Edit: neokio in the comments has answered my question. I don't know if you can accept a comment as a best answer, however, I'm going to do a little digging and see if you can before marking this question as solved. To those searching for the same thing, search for "gradient transparency masking".
Edit 2: This is the code I have used on my website for those who want to achieve this effect:
-webkit-mask-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(0,0,0,0)), color-stop(5%, rgba(1,1,1,1)), color-stop(95%, rgba(1,1,1,1)), color-stop(100%, rgba(0,0,0,0)));
mask-image: linear-gradient(to bottom,
rgba(0, 0, 0, 0) 0%,
rgba(0, 0, 0, 1) 5%,
rgb(0, 0, 0, 1) 95%,
rgba(0, 0, 0, 0) 100%
);
I would like to achieve the effect mentioned here for both the top and bottom of a div.
When I had a solid background, I could achieve it fine. However, I am now using a changing background with a gradient and I can no longer use anything that relies on a fixed gradient or colours.
I want to blur the incoming and outgoing content into the background when I scroll, rather than having it disappear abruptly (the div that is scrollable is within the page, it is not the entire page.
I have looked at seeming duplicates, however, none of them achieve this. All of them ultimately rely on using a solid colour or background image.
Thanks in advance.