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;
}

 

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, 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.