Site logo

Archived topic

Nav links effect

3 replies · Started by Enrico on December 28, 2020

Viewing posts 1–4 of 4

Hi there.
Thanks to this great support forum I was able to add Nav links effect on my menu.
Unfortunately there is something that I need to fix.
I don't know if my request goes beyond the support provided by this forum... Anyway, I try to ask.

I added the follow code and it work well:

/* nav links effect */
.main-navigation .menu > .menu-item > a::after {
    content: "";
    position: absolute;
    right: 0;
    left: 50%;
    bottom: 15px;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);

    display: block;
    width: 0;
    height: 2px;

    background-color: currentColor;
    transition: 0.3s width ease;
}
.main-navigation .menu > .menu-item.current-menu-item > a::after,
.main-navigation .menu > .menu-item > a:hover::after {
    width: 80%;
}

The problem is that I'm using a plugin for Mobile menu, and it doesn't work if I use the above code.
The plugin is Superfly Menu.

It is possible to fix?
Thank you.

Hi there,

its out of our scope if its directly plugin related, i can take a look at the menu if you can share a link to the site to see whats possible - but just as a note: Mobile devices don't do hover effects correctly as you can't 'really' hover on a mobile device

Thanks David.
I meant something else... I meant that the plugin menu does not work (the sub menu does not open) if I add Nav links effect on desktop menu.

Anyway, I don't understand the reason, now both desktop and mobile menu works well.
Thanks for you kind reply and sorry I wasted your time :-(

Have a good day.
Enrico

No problems - glad you got it resolved!

This archived topic is closed to new replies.