Jump to content

CSS Blur Effect Not Showing on Mobile Browser

Go to solution Solved by tuanphan,

Recommended Posts

Hello;

Some of my CSS is only being applied correctly when viewing the website on my Mac, but not my iPhone.

For certain text blocks for which I want to have a blurred background, I have used the following CSS code:

#block-xxxx
{background: inherit!important;
background-color: rgba(0, 0, 0, 0.2)!important;
backdrop-filter: blur(5px)!important;
}

This all works fine and successfully tints+blurs the text blocks when viewing the website on both Desktop View and Mobile View from my Mac. However, when viewing the website from Safari or Chrome from my iPhone, the blocks are not blurred anymore. They are tinted, so the background-colour line seems to work, but they are not blurred, so the backdrop-filter: blur does not work.

Why is this happening? Is there another piece of CSS I can add to ensure that it is blurred across all platforms?

Thank you in advance! 

Link to comment
  • Replies 2
  • Views 3.9k
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution

Try using prefix

#block-xxxx
{background: inherit!important;
background-color: rgba(0, 0, 0, 0.2)!important;
-webkit-backdrop-filter: blur(5px)!important;
        backdrop-filter: blur(5px)!important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 2 weeks later...
On 9/21/2023 at 6:58 PM, tuanphan said:

Try using prefix

#block-xxxx
{background: inherit!important;
background-color: rgba(0, 0, 0, 0.2)!important;
-webkit-backdrop-filter: blur(5px)!important;
        backdrop-filter: blur(5px)!important;
}

 

Absolute legend - that worked perfectly. Thank you so much!

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.