-
ehewett
I used the documentation to create a menu animation. https://docs.generatepress.com/article/adding-menu-hover-animation/
It works great, except it puts the animation on my button link also. Is there a way to exclude the Contact Us button link from the animation?
-
Hi there,
Edit your CSS to this:
@media (min-width: 769px) { .main-navigation .menu > .menu-item:not(.mobile-nav-button) > a::after { content: ""; position: absolute; right: 0; left: 50%; bottom: 15px; display: block; width: 0; height: 2px; background-color: var(--action); transition: 0.3s width ease; } .main-navigation .menu > .menu-item.current-menu-ancestor:not(.mobile-nav-button) > a::after, .main-navigation .menu > .menu-item:not(.mobile-nav-button) > a:hover::after { width: 70%; } }
Let me know if this helps 🙂
-
ehewett
-webkit-transform: translate3d(-50%,0,0); transform: translate3d(-50%,0,0);
I had to add that code back in, but it worked great. Thank you!
-
No problem 🙂
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.