Jump to content

Text to appear when scrolling

Go to solution Solved by Beyondspace,

Recommended Posts

  • Solution
On 4/1/2021 at 9:53 PM, Cro said:

Site URL: https://www.cronancreagh.com/portfolio

Hey I have three pieces fixed text on the right of my webpage. 

I am looking to have it fade in when the user starts scrolling, rather than have it appear straight away.

Add this to custom css, it takes advantage of shrink class on header when user start scrolling

#block-yui_3_17_2_1_1616356562141_81942,
#block-yui_3_17_2_1_1616225316147_17455,
#block-yui_3_17_2_1_1616356562141_83066 {
  opacity: 0;
  transition: opacity 0.75s;
}
.shrink + #page #block-yui_3_17_2_1_1616356562141_81942,
.shrink + #page #block-yui_3_17_2_1_1616225316147_17455,
.shrink + #page #block-yui_3_17_2_1_1616356562141_83066 {
  opacity: 1;
}

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
On 4/4/2021 at 5:07 AM, bangank36 said:

Add this to custom css, it takes advantage of shrink class on header when user start scrolling


#block-yui_3_17_2_1_1616356562141_81942,
#block-yui_3_17_2_1_1616225316147_17455,
#block-yui_3_17_2_1_1616356562141_83066 {
  opacity: 0;
  transition: opacity 0.75s;
}
.shrink + #page #block-yui_3_17_2_1_1616356562141_81942,
.shrink + #page #block-yui_3_17_2_1_1616225316147_17455,
.shrink + #page #block-yui_3_17_2_1_1616356562141_83066 {
  opacity: 1;
}

 

Worked beautifully 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.