Jump to content

Split Nav Overlay Into 2 Columns?

Recommended Posts

It will require a lot of code, but I did a similar case a few months ago. You can see demo here: https://tuanphan.squarespace.com/burger-menu-2?noredirect

pass: abc (you need to enter twice)

1f1327a4ca6d6fdd83124de46d63c94c59778c63

 

First you need to add 2 Sections in Footer. Suppose it is section 3 (with 2 text blocks side by side) and section 4 (gallery section slideshow), then design your layout.

Next, use this code to Website Tools (under Not Linked) > Custom CSS

@media screen and (min-width:768px) {
    /* Fix footer invisible behind page content */
footer.sections {
     z-index: 9999999 !important;
 }
/* change footer 2 sections to 100% height and 50% width */
footer.sections section:nth-child(3), footer.sections section:nth-child(4) {
    width: 50%;
    height: 100vh;
    position: fixed;
    z-index: 9999;
    left: 0;
}
footer.sections section:nth-child(3) {
    left: 0;
}
/* move footer section 4 to right 50% */
footer.sections section:nth-child(4) {
    left: 50%;
    right: 0;
}
/* disable scroll when burger menu is open */
.header-burger--open body {
    overflow: hidden;
}
/* effect on 2 sections when click burger menu */
  body footer.sections section:nth-child(3), body footer.sections section:nth-child(4) {
    transition: transform 1.2s ease;
      top: 50px !important;
}
body footer.sections section:nth-child(3) {
    transform: translateY(-150%);
    transition: transform 0.75s ease;
}
body footer.sections section:nth-child(4) {
    transform: translateY(150%);
    transition: transform 0.75s ease;
}

body.header--menu-open footer.sections section:nth-child(3) {
    transform: translateY(-0%);
    transition: transform 0.75s ease;
}

body.header--menu-open footer.sections section:nth-child(4) {
    transform: translateY(0%);
    transition: transform 0.75s ease;
}
}

Note: 50px in top: 50px !important; is space between 2 sections with bottom of header. You can adjust this value.

 

 

image.png

Edited by tuanphan

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

It seems to get rid of the burger "x" to exit out and I can't seem to get the gallery to take up enough space no matter where I put it/size it. 

Since it won't work on mobile (not needing it to), I also wonder if there's a way to hide the original nav links on desktop only. Otherwise they still pop up as the desktop nav overlay is transitioning. I don't want to hide them completely, otherwise nothing will show up in the nav on mobile. 

Link to comment

To fix X disappear, add this code under

@media screen and (min-width:768px) {
header#header {
    z-index: 9999999999;
}
.header-menu {
    display: none !important;
}
}

Hide nav on desktop: Which nav are you referring to? I see burger only

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

I had links in the main navigation panel but they were flashing as the split screen overlay was appearing. That seems to be a non-issue now. 

Any fix on the size of the gallery? My working homepage is alltradescreative.co/home and I also notice a gap between the page and the nav overlay

Screenshot 2024-01-05 at 2.25.44 PM.png

Link to comment
On 1/5/2024 at 9:25 PM, AllTradesCo said:

I had links in the main navigation panel but they were flashing as the split screen overlay was appearing. That seems to be a non-issue now. 

Any fix on the size of the gallery? My working homepage is alltradescreative.co/home and I also notice a gap between the page and the nav overlay

Screenshot 2024-01-05 at 2.25.44 PM.png

I see you use Gallery Block Slideshow, you can consider using Gallery Section Slideshow, it should fullheight without code

Or you can change it to Classic Editor Section? I can fix with code easier

image.png.5d4a97cbef2b60553a23ec3761c96e53.png

with new editor, it always have a gap under, difficult to fix it

image.thumb.png.517953704317176b435972768f5a99e2.png

To hide 3, 4 sections on mobile, use this CSS code

@media screen and (max-width:767px) {
	footer.sections section:nth-child(n+3) {
		display: none !important;
}
}

 

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.