Jump to content

Header hover animation not working on home page

Go to solution Solved by tuanphan,

Recommended Posts

Site URL: https://howtousepsychedelics.com

So, with some help from people here and the internet, I've managed to animate the header menu items when hovering on each item, including the drop down menu. The animation is a simple fade, but, it really adds to the experience.

Anyways, the fade hover animation works perfectly on every single page of the website, EXCEPT the home page. On the home page, there is no fade hover animation. 

Can someone help me solve this issue?

So far, the code I've used include:

CSS

//Header Font Size
.header-nav-item a {
    font-size:18px !important;
}

//Stylized Folder Dropdown Menu
.header-nav .header-nav-item--folder .header-nav-folder-content .header-nav-folder-item {
line-height: 1.6;
}

//Fix Header for Hover Effect
.tweak-transparent-header:not(.header--menu-open) .header-announcement-bar-wrapper.black .header-nav-wrapper a:hover {
opacity: .4
}

//DropDownMenu Fading
.header .header-nav .header-nav-item--folder .header-nav-folder-content {
  transition: ease-in-out 0.5s;
}

 

Thank you for your help and input!

Take care.

Link to comment

Edit your code to this

//Header Font Size
.header-nav-item a {
    font-size:18px !important;
}

//Stylized Folder Dropdown Menu
.header-nav .header-nav-item--folder .header-nav-folder-content .header-nav-folder-item {
line-height: 1.6;
}

//Fix Header for Hover Effect
body:not(.header--menu-open) .header-announcement-bar-wrapper.black .header-nav-wrapper a:hover {
opacity: .4 !important;
}

//DropDownMenu Fading
.header .header-nav .header-nav-item--folder .header-nav-folder-content {
  transition: ease-in-out 0.5s;
}

 

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
  • Solution

try edit this

//Fix Header for Hover Effect
body:not(.header--menu-open) .header-announcement-bar-wrapper.black .header-nav-wrapper a:hover {
opacity: .4 !important;
}

to this

//Fix Header for Hover Effect
body:not(.header--menu-open) .header-announcement-bar-wrapper .header-nav-wrapper a:hover {
opacity: .4 !important;
}

 

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.