Jump to content

Custom Hamburger - Change On Hover?

Go to solution Solved by Shadmon,

Recommended Posts

To change the colour on hover you would most likely have to swap the image in CSS, unless you want to simply invert the image.

What code did you use to change the hamburger menu icon to an image?

Edited by Ziggy

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
9 hours ago, Shadmon said:

@FTWSGEM Hi, You can add this CSS code. Just add your image there and it will show on hover.

.burger-inner:hover::after {
    background-image: url(add your image url here);
}

Let me know if it helps!

That is perfect, thank you @Shadmon

How would I get this to also work for the logo?

Link to comment
54 minutes ago, tuanphan said:

@FTWSGEM with logo try this code, replace Pixabay with your logo url

.header-title-logo a:hover img {
    content: Url(https://cdn.pixabay.com/photo/2024/02/28/14/01/woman-8602128_1280.png);
}

 

This gives me a syntax error 😞

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.