Jump to content

Hamburger menu dark overlay mail-function

Recommended Posts

Site URL: https://primemetny.squarespace.com

Site URL: primemetny.squarespace.com

Site PW: 1500

 

As you can see I am currently using the hamburger menu with slide in-out effect, I also added a dark overlay when the hamburger slide out, it was working just perfectly and then it happened to be presented as a full dark overlay sometimes, yes, it is sometimes but not always. This drives me crazy, can someone help me to check if there is any codes I can change?

//overlay under menu
.header-menu:after {
  content: '';
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: black;
  opacity: 0;
  transition: opacity 1.5s  ease;
  z-index: -1;
  pointer-events: none;
}
.header--menu-open .header-menu:after {opacity: 0.6;}

 

Link to comment
  • 1 month later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

On 6/9/2022 at 6:39 AM, Leesh said:

Site URL: https://primemetny.squarespace.com

Site URL: primemetny.squarespace.com

Site PW: 1500

 

As you can see I am currently using the hamburger menu with slide in-out effect, I also added a dark overlay when the hamburger slide out, it was working just perfectly and then it happened to be presented as a full dark overlay sometimes, yes, it is sometimes but not always. This drives me crazy, can someone help me to check if there is any codes I can change?

//overlay under menu
.header-menu:after {
  content: '';
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: black;
  opacity: 0;
  transition: opacity 1.5s  ease;
  z-index: -1;
  pointer-events: none;
}
.header--menu-open .header-menu:after {opacity: 0.6;}

 

Can you take some screenshots of your issue? I check it is fine at the moment

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. 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.