Site logo

Archived topic

adding menu hover animation GP 3.0

5 replies · Started by Axel on October 7, 2020

Viewing posts 1–6 of 6

hi folks,

trying something i did several times before - adding menu hover animation ...

@media (min-width: 769px) {
    .main-navigation .menu > .menu-item > a::after {
        content: "";
        position: absolute;
        right: 0;
        left: 50%;
        bottom: 12px;
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);

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

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

using a fresh install with 3.0 and nothing seems to work. no animation.
has there been a change with 3.0 to that somewhere?

Hi there,

Any chance you can link us to the site in question?

You can use the private information field.

Let me know :)

... work in progress - just barebone set-up site.
link attached.

... jeez!

no at first - didnt work eighter way. deactivated it again ...
but in addition some crazy typo!

sorry. works of course now .-)

definitely have to pay more attention to dots and shouldnt do more than one thing at once ;)

thanks leo.

No problem :)

This archived topic is closed to new replies.