This topic has 12 replies, 2 voices, and was last updated 6 years, 1 months ago ago by Rose Tyler
Is there a way to change the fadein / fadeout animation on the menu hover items? to make it slide down?
if not, how do i disabled the fadein/fadeout effect?
Hello,
.menu-item-has-children:hover .nav-sublist-dropdown, li:hover .nav-sublist-dropdown {
animation: unset;
}
Regards
Hi Rose – I’ve had no success with above and can’t seem to overwrite it with !important; Can you take a look? I’ve like to kill the fadeIn/fadeOut all together and remove the delay. See private content.
Hello,
Please try this code:
.menu-item-has-children:hover .nav-sublist-dropdown, li:hover .nav-sublist-dropdown {
animation-duration: 0s;
}
Regards
I’m still having no luck killing the fadeIn effect. It’s some how set in stone somewhere. What I’m trying to do is kill the fadein fadeout effect and make the menu slide down on hover but I can’t seem to get it working properly. Almost there but it’s a bit quirky. Thoughts?
jQuery(document).ready(function($){
$('.menu-wrapper>.menu-main-container>.menu>.item-with-block').on('mouseover', function() {
$('.menu-static-block.nav-sublist-dropdown').slideToggle();
});
$('.menu-wrapper>.menu-main-container>.menu>.item-with-block').on('mouseleave', function() {
$('.menu-static-block.nav-sublist-dropdown').slideToggle();
})
});
Hello,
Please add this custom css code:
.nav-sublist-dropdown {
transform: translateY(-20px);
transition-duration: .2s;
animation: none;
display: block;
opacity: 0;
visibility: hidden;
}
.menu-item-has-children:hover .nav-sublist-dropdown, li:hover .nav-sublist-dropdown {
transform: translateY(0px);
animation: none;
opacity: 1;
visibility: visible;
}
Regards
Hi Olga, thank you. Still the ‘animation’ parameter for the .nav-sublist-dropdown can’t be overwritten. Were you albe to successfully do this on your end?
Hello,
I don’t know why it does not work for you but we have added our custom code at the very top of the child theme style.css on your production site and everything works fine.
Maybe you wanted to implement another effect then provide us with an example for better understanding.
Regards
Thanks Rose. Can we pull the link off the last response. And then delete this message. Thanks!
Rose/Olga, it worked! Thank you. I took your suggestion and swizzled it around. Don’t even need the jQuery I initially thought I did.
.nav-sublist-dropdown {
transition-duration: .5s;
animation: none;
display: block;
opacity: 1 !important;
visibility: hidden;
overflow-y: hidden;
max-height: 0;
transition-property: all;
transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
}
.menu-item-has-children:hover .nav-sublist-dropdown, li:hover .nav-sublist-dropdown {
animation: none;
opacity: 1 !important;
visibility: visible;
max-height: 500px; /* approximate max height */
}
Hi Olga – can we pull the link off this please? Thanks.
I also noticed, for some bizarre season, if I have the css below this css –> body {font-family: “proxima-nova”, sans-serif !important; -webkit-font-smoothing: antialiased !important;}, the animation doesn’t work. it needs to be above the body css. Never seen that one before.
Hello,
You’re welcome!
Regards
You must be logged in to reply to this topic.Log in/Sign up