Jump to content

Unhiding logo/site title when scrolling down on homepage

Go to solution Solved by tuanphan,

Recommended Posts

Hi All,

So right now I have my site title hidden on the home page only using this code.

.homepage a#site-title {
    visibility: hidden;
}

But I wanted to see if it could become unhidden when scrolling down the page? 
And with a fade in effect? 
Also would be great for it to disappear again when reaching the top of the page but not totally necessary. 
Just want for the home page only. 

https://harp-cobalt-g6lj.squarespace.com/
Password: blueberry2

Let me know your thoughts! Much appreciated!! 

Link to comment

Change to this code

.homepage header#header:not(.shrink) a#site-title {
    opacity: 0;
	transition: all 0.3s ease;
}
a#site-title {
	transition: all 0.3s ease;
}

 

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.