Jump to content

Shrink Navigation on Scroll

Recommended Posts

I see you solved with JavaScript.

However, in SS 7.1, Squarespace will add new class on scroll. So you can solve with CSS, no need to use JavaScript.

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 2 weeks later...

Actually, here's a fix from the amazing Schwartz Edmisten:

 

//Shrink Your Logo
.header-announcement-bar-wrapper .header-title-logo img {
    transition: max-height 140ms ease-in-out
}
.header-announcement-bar-wrapper.shrink {
  padding-top: 20px!important;
  padding-bottom: 20px!important;
.header-title-logo img {
    max-height: 40px;
}
}

 

Source:  https://schwartz-edmisten.com/blog/shrink-logo-on-scroll-in-squarespace-71

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.