I've seemed to try all the tricks in the book here, and nothing's working.
I have a full-screen, absolute positioned HTML5 video background that I need to blur. However, I'd like it to have sharp edges.
I've tried around 20 or 30 various solutions online so far, and nothing has seemed to work.
Here's what I've tried:
-Setting negative margins
-Setting negative top, left, right, bottom margins
-Setting positive margins in a container with overflow hidden
-Setting in a container with overflow hidden
-Methods noted here: Defined Edges With CSS3 Filter Blur - Defined Edges With CSS3 Filter Blur - CSS blur and retain sharp edges using absolute div - Blur absolute background whilst retaining solid edges - http://volkerotto.net/2014/07/03/css-background-image-blur-without-blury-edges/
Here's the code so far:
HTML
<video id="videobcg" preload="auto" autoplay="true" loop="loop" muted="muted" volume="0">
<source src="vid/myVid.mp4" type="video/mp4">
<source src="vid/myVid.webm" type="video/webm">
Sorry, your browser does not support HTML5 video.
</video>
CSS
#videobcg {
position: absolute;
top: 0;
left: 0;
min-width: 100% !important;
max-height: 100% !important;
z-index: -1000;
overflow: hidden;
object-fit: fill;
-webkit-filter: blur(15px);
-moz-filter: blur(15px);
-o-filter: blur(15px);
-ms-filter: blur(15px);
filter: blur(15px);
}
Maybe I've done something totally wrong, I'm not quite sure. Is there anything I'm doing that's preventing it from working?
Thanks in advance for any help!