Jump to content

Logo appear on scroll - CSS stopped working

Recommended Posts

Site URL: https://orange-chicken-3kkp.squarespace.com/config/settings/site-visibility

Hi everyone,

Site pw is kellyrossdesign


I am trying to make the header logo on the homepage slowly appear on scroll. I have used the code below via @44degreesnorth . 

It worked perfectly and was looking beautiful, but it seems to have stopped working now for some reason. I've tried removing any new CSS that I have added today but that doesn't seem to have made a difference...

Any ideas?



.header-title-logo {
  opacity: 0;
  position: relative;
  top: -10vh;  
  transition: all 0.75s; 
}
.shrink .header-title-logo {
  opacity: 1;
  position: relative;
  top: 0;  
}

 

 

 

 

Link to comment
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Add to Design > Custom CSS

header#header img {
    transition: all 0.3s;
    opacity: 0;
}
header#header.shrink img {
    opacity: 1;
    transition: all 0.3s;
}

 

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

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.