I m 试图复制由 Apple普电视+聪明电视产生的效应 在我的个人网站上,在背景上有梯度模糊,可追溯到网页的某一点,但一旦你进一步放下,该圆形就会上升,覆盖整个背景形象的网页。
Similar to how when you view a TV Show or movie on the Apple TV+ Smart TV App, the background has a sort of gradient blur over it going down to a specific point on the screen; but when you go further down (Say to view additional episodes of a TV Show or the Special features for a movie) the blur covers the entire background while the background image stays fixed.
I have a div set up on my site with a blur backdrop filter covering the entire background image:
<div class="blurred-mask-container"></div>
and have my CSS set up like so:
.blurred-mask-container {
top: 0;
bottom: 0;
position: absolute;
height: 100%;
width: 100%;
backdrop-filter: blur(100px);
z-index: -1;
}
And my goal is to have a gradient transparency going from transparent at the top of the div, then blurry at around 800px down specifically no long the webpage ends up being should I add/remove elements from the page.
Originally I tried setting up my div with two child divs inside: Both with the same Backdrop Filter, only the one on top was 800px tall and had a transparency mask, and the one on the bottom just had a backdrop filter with no mask. However, there was a VERY noticeable interruption in the blur effect where the bottom of the top div with the gradient mask met the top of the bottom div without one; so now I m trying to do this effect in one div.
However every tutorial or set of instructions I ve found so far online, including here, seems to only have steps for applying a gradient transparency to an image such as an image inside a div, or the background image on a website not on a div hovering over the background image that just has a backdrop filter in it. Any help in figuring this out would be greatly appreciated.
<><><> > 为明确起见添加:>>> 我在光店做了一些模拟,以作为Im试图退出的影响的例子。
当你首次装上网页时,背景形象应主要出现在顶端,在底层产生模糊效应,梯度透明度从底层到顶。 当你浏览网页时,。 镜头应当用滚动棒()更换屏幕。 并且,一旦你向某一点投递,。 影像效应应覆盖到底部的整个背景形象。