Sometimes we like when a button or text link displays the slow fade from its base color to its interactive color. However, ther are many instances when we just want it to show the hover state with no fade animation.
Is there a way to remove all hover animations site-wide?
This is the site we’re currently working on: https://shrimpshack.nueramarketing.com/
I’ve implemented the following code for CSS and JS as it pertains to dropdowns, but I haven’t been able to figure out how to isolate menu navigation or text yet.
/* Remove Dropdown Delay */
body .x-masthead .x-dropdown,
body .x-masthead .x-anchor,
body .x-masthead .x-interactive,
body .x-masthead .x-dropdown.x-active {
transition-delay: 0s, 0s, 0s !important;
transition-duration: 0s, 0s, 0s !important;
transform: translate3d(0, 0, 0) !important;
}
@media ( min-width: 980px ) {
li.menu-item-has-children > ul {
display: none !important;
}
li.menu-item-has-children:hover > ul {
display: block !important;
}
}
Please let me know if there’s an easy fix for this. Thanks!