Jump to content

Header bar shrink on scroll - glitch when going back to top

Recommended Posts

Site URL: https://bridgendathletics.org

I have entered some code to allow my header bar to shink on scroll which works fine, however when you scroll back to the top of a page you get a flash of colour of nav at original size. Ideally the top nav bar should only be visible with transparent background. 

Not sure if this makes sense haha... quite hard to explain, if you scroll down on the page, then back up to top you should see it flash.

password: bridgendathletics

 

This is the code:

header.shrink {
  .header-announcement-bar-wrapper{
    padding-top: 20px!important;
    padding-bottom: 20px!important;
    background: transparent !important;
  } 
 .header-title-logo a {
   max-height: 50px;
    content: url('https://static1.squarespace.com/static/6005a5e6e8c063189b6baf41/t/6005c7234f994d4e738961df/1610991400154/BAC_Logotype_White_type.png');
 

 

 

Edited by HarryMeakin
Link to comment
  • Replies 3
  • Views 429
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 year later...

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.