I've come across an issue of trying to fade the edges of the background image of a div so that it looks like it's blending with the background image of the full site (so the background image applied to the body).
body{
background-image: url('some url here') !important;
background-repeat: no-repeat;
background-attachment: fixed;
background-position: 100%;
background-size: 1150px;
}
#blendElement{
background: url('some other url here');
background-attachment: fixed;
background-repeat: no-repeat;
background-size: 100%;
}
<head>
</head>
<body>
<div>
<div id="blendElement"> This should have edges blending to the main (body's) background image behind it.
</div>
</div>
</body>
If you've ever used PowerPoint and tried an image effect called soft edges, that's exactly what I'm trying to do here. The only related "answer" I was able to find was for solid body background colors by using box-shadow with inset:
box-shadow: 25px 25px 50px 0 (color matching background color) inset;
But since the body has a background image and not a solid color, there's no way to make it look like it's blending in. And obviously using a transparent color in box shadow just shows the div background image as it normally would look.
Could someone help me out with this? (And I can't edit the div image to give it transparent fading edges, so it'll have to be directly done with CSS or JS)