Jump to content

Blur background div on scroll

Recommended Posts

How can I use CSS to blur a div on scroll? 

On my website, I have a header "Aaron Wu designs digital products...." which stays fixed as a user scrolls. As a user scrolls, I want the subsequent following text to become blurred behind the header. I've tried using backdrop-filter CSS, but it's not working, perhaps because I am using a fixed/sticky section. 

Website: here

Screenshot 2023-05-10 at 9.53.21 PM.png

Edited by azbd77j8
Link to comment
  • Replies 3
  • Views 782
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Try adding this in addition to your other Custom CSS:

[data-section-id="644751937fb20441e7461ffd"] {
   .page-section .section-border {
      background-color: rgba(255,255,255,0);
      opacity: 0;
   }
}

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
7 hours ago, Ziggy said:

Try adding this in addition to your other Custom CSS:

[data-section-id="644751937fb20441e7461ffd"] {
   .page-section .section-border {
      background-color: rgba(255,255,255,0);
      opacity: 0;
   }
}

Thank you for the reply 🙂

Unfortunately, it still isn't working for me. 

Right now, here's the code I'm using: 

section[data-section-id="644751937fb20441e7461ffd"] {
  background-color: rgba(255, 255, 255, 0.5)!important;
  backdrop-filter: blur(10px)!important;
}

[data-section-id="644751937fb20441e7461ffd"] {
   .page-section .section-border {
      background-color: rgba(255,255,255,0)!important;
      opacity: 0!important;
   }
}


Link to comment

Drat, that's a shame! I'm not sure why that's not working, it's not easy to troubleshoot remotely, I could probably help more with access to your website.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

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.