Jump to content

Dynamic header: how to hide header when scrolling down and show when scrolling up

Recommended Posts

Hi

I have two questions I would love some help on! And thank you in advance!

I currently have a fixed header that stays put as you navigate through each page but would like it to disappear when scrolling down and reappear when scrolling up? I have searched and tried lots of different code variations and nothing works. Can anyone help?

A more complex idea, but I do not know if possible is I would like to do the same as https://www.thetrove.co.uk  - where the header banner changes into a smaller header upon scrolling down and reappears when scrolling up. Is this possible of squarespace 7.1

Thank you so so much!

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

Top Posters In This Topic

  • 2 weeks later...

You can enable scroll header then use this code to Website Tools (under Not Linked) > Custom CSS

header#header, header#header img, header#header.shrink img {
    transition: all 0.3s;
}
header#header.shrink img {
    width: 30px;
}

 

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.