Why does applying a CSS-Filter on the parent break the child positioning?

前端 未结 3 1350
后悔当初
后悔当初 2020-11-22 03:28

So I have this title-screen "animation" that has the title centered on a fullscreen page and when you scroll down it becomes smaller and remains at the top of the

3条回答
  •  误落风尘
    2020-11-22 04:11

    If you want to blur or grayscale the entire page except one element, just use backdrop-filter instead of filter. At the time of writing Firefox just needs to ship it by default.

    Not working:

    
        
    
    
        
    I am not blurred

    Working:

    
        
    
    
        
    I am not blurred

提交回复
热议问题