Jump to content

Is there a way to "delay" the scroll back for the header on mobile?

Go to solution Solved by Beyondspace,

Recommended Posts

Site URL: https://www.tgtfresh.com/

I'm hoping to sort of delaying the scroll back header from hiding when I'm scrolling down to only start to hide after I scroll past the first section or two, so there wouldn't be a blank area most of the time when the page isn't completely scrolled to the top.

IMG_9444.thumb.PNG.4b7f157814de5e8a1c0254380e4d621f.PNG

Secondly, since I'm hiding the logo with instructions from https://schwartz-edmisten.com/blog/shrink-logo-on-scroll-in-squarespace-71 on mobile, and modified to transform instantly, the logo makes the page jump a bit every time I scroll to top - I'm thinking that delaying the scroll back to somewhere lower than the top of the screen might make this process off screen and reduce its impacts.

Also, is there a way to disable the code for shrinking the logo when I'm in the overlay navigation menu?

IMG_9448.thumb.PNG.a8aa09d8f27d27b4d7c95b58bc0d4ecf.PNG

Link to comment
45 minutes ago, L1NST3R said:

Site URL: https://www.tgtfresh.com/

I'm hoping to sort of delaying the scroll back header from hiding when I'm scrolling down to only start to hide after I scroll past the first section or two, so there wouldn't be a blank area most of the time when the page isn't completely scrolled to the top.

IMG_9444.thumb.PNG.4b7f157814de5e8a1c0254380e4d621f.PNG

Secondly, since I'm hiding the logo with instructions from https://schwartz-edmisten.com/blog/shrink-logo-on-scroll-in-squarespace-71 on mobile, and modified to transform instantly, the logo makes the page jump a bit every time I scroll to top - I'm thinking that delaying the scroll back to somewhere lower than the top of the screen might make this process off screen and reduce its impacts.

Also, is there a way to disable the code for shrinking the logo when I'm in the overlay navigation menu?

IMG_9448.thumb.PNG.a8aa09d8f27d27b4d7c95b58bc0d4ecf.PNG

You mean the header only shrinked when scroll pass the first 2 sections right?

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, Lightbox Studio plugin
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
  • 1 month later...
On 11/18/2021 at 12:28 PM, L1NST3R said:

Yeah, and to disable logo shrink when the overlay menu is open, so the logo will still show when I'm in the menu. Is that possible?

For disable logo shrink when overlay menu is open, you can try

#header.shrink .header-title-logo img {
  max-height:  80px;
}

 

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, Lightbox Studio plugin
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
7 minutes ago, bangank36 said:

For disable logo shrink when overlay menu is open, you can try

#header.shrink .header-title-logo img {
  max-height:  80px;
}

 

Thanks for the response, I've just tried this, but this stops the logo shrink outside of the overlay menu too, is there a way to limit it to being only for the overlay menu?

Link to comment
  • Solution

Problem has been solved via PM!

Edited by bangank36

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, Lightbox Studio plugin
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

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.