Jump to content

How to add custom button hover effect on website header button?

Go to solution Solved by Ziggy,

Recommended Posts

Posted

As you can see on my website, the current header button "Create Account" does not have any hover effect.

I already have some custom code for this button in CSS (for sizing and colour), and I would like to add a slight dim to it when the mouse hovers on it. However, I want to do this without affecting current button CSS which maintains its size and colour.

Can you please help?

Thank you!

Posted

Can you share your website URL?

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!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

  • Solution
Posted

You can try this CSS:

.header-actions .btn:hover {
    transition:ease-in-out 300ms;
    background-color:rgba(255,255,255,0.85) !important
  }

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!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted
17 hours ago, Ziggy said:

You can try this CSS:

.header-actions .btn:hover {
    transition:ease-in-out 300ms;
    background-color:rgba(255,255,255,0.85) !important
  }

Thanks, this is working except for the fact that it's slightly transparent on hover?

Posted
17 hours ago, Ziggy said:

You can try this CSS:

.header-actions .btn:hover {
    transition:ease-in-out 300ms;
    background-color:rgba(255,255,255,0.85) !important
  }

Solved, actually. Thanks!

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.