Jump to content

Scroll-back Fixed Header Responsiveness/Speed

Recommended Posts

Hello all,

Does anyone have suggestions on how to improve the responsiveness of the 'scroll-back' fixed menu in Squarespace 7.1? Currently, there is a 1-2 second lag before the menu reappears when a user scrolls up, which is not ideal for accessibility. I'm aiming for a more instantaneous response, similar to this example.

This issue pertains to the default fixed header style > scroll-back settings in Squarespace 7.1. I have tried the following CSS solution, but it hasn't resolved the issue:

/* Remove transition delay for immediate appearance on scroll up */
.header-nav-wrapper {
  transition: transform 0s ease-in-out !important;
}

.header-nav-wrapper.is-scrolling-down {
  transform: translateY(-100%) !important;
}

.header-nav-wrapper.is-scrolling-up {
  transform: translateY(0) !important;
}

/* Ensure immediate reappearance on scroll up */
body[data-scrolled-up='true'] .header-nav-wrapper.is-scrolling-down {
  transform: translateY(0) !important;
}

Any advice or alternative solutions would be greatly appreciated!

Link to comment
  • Replies 4
  • Views 546
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

6 hours ago, Guvnor said:

Hello all,

Does anyone have suggestions on how to improve the responsiveness of the 'scroll-back' fixed menu in Squarespace 7.1? Currently, there is a 1-2 second lag before the menu reappears when a user scrolls up, which is not ideal for accessibility. I'm aiming for a more instantaneous response, similar to this example.

This issue pertains to the default fixed header style > scroll-back settings in Squarespace 7.1. I have tried the following CSS solution, but it hasn't resolved the issue:

/* Remove transition delay for immediate appearance on scroll up */
.header-nav-wrapper {
  transition: transform 0s ease-in-out !important;
}

.header-nav-wrapper.is-scrolling-down {
  transform: translateY(-100%) !important;
}

.header-nav-wrapper.is-scrolling-up {
  transform: translateY(0) !important;
}

/* Ensure immediate reappearance on scroll up */
body[data-scrolled-up='true'] .header-nav-wrapper.is-scrolling-down {
  transform: translateY(0) !important;
}

Any advice or alternative solutions would be greatly appreciated!

Can you share your URL so I can check it easier?

If your site haven't been published yet, you can refer here to share it with the protected password

Edited by HoaLT

Press 👍  or mark my comment as solution if you find my sharing useful

🆒 Squarespace pinchzoom lightbox plugin (affiliate link)

👁‍🗨 360 degree photo viewer (affiliate link)

Link to comment
8 hours ago, Guvnor said:

Thanks @HoaLT, you can access the dev site here:

https://yellow-turkey-4c97.squarespace.com/

Password: qft3hyu!rgj5ztw8HNY

This code controls the transition effect when you scroll back.

image.thumb.png.098fbd1b1042900b1cb5bcc1428dcbe3.png

Try the following custom CSS to set transition duration with 0

.header.shrink {
  transition-duration: 0ms !important;
}

Hope it makes sense

Press 👍  or mark my comment as solution if you find my sharing useful

🆒 Squarespace pinchzoom lightbox plugin (affiliate link)

👁‍🗨 360 degree photo viewer (affiliate link)

Link to comment

Appreciate you taking a look at this @HoaLT. I've applied the code and removed any conflicting CSS, but as you can see on the Dev site, the same 1-2 second lag persists before it is revealed to the user on scroll-up. Do you know where to target either the timing or distance of the 'scroll-up' function?
 

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.