Jump to content

Code block text is not fading on with user scroll like the rest of the site

Recommended Posts

Hello, 

I had to add a few areas of code block for text on my site since I wanted the headlines, subheads and body copy to be closer together than the default for Squarespace layouts. However, as I am adding the code blocks I have noticed that the text no longer fades in on scroll like I have everything else set up on the site. I found a way with CSS to have the text fad on but it is defined by seconds, I would rather the text fade on when the user scrolls down the page. 

Can anyone help me out with this? 

Here is an page that has a few code blocks on it: https://bell-cheetah-n87s.squarespace.com/our-purpose
PW: scratch  

Thanks in advance!

 

Link to comment
  • Replies 3
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

  • 4 weeks later...

@tuanphan Okay, great. Can you please share the code? I've tried decreasing padding and margins from my headings and paragraphs in CSS and that's not doing the trick which is why I switched over to the code blocks. 

 

Thanks, 

 

Link to comment
On 5/9/2024 at 1:19 AM, BilO said:

@tuanphan Okay, great. Can you please share the code? I've tried decreasing padding and margins from my headings and paragraphs in CSS and that's not doing the trick which is why I switched over to the code blocks. 

 

Thanks, 

 

Which text are you referring to?

https://bell-cheetah-n87s.squarespace.com/our-purpose

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

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.