[Support request] Hamburger icon customisation and animation

Home Forums Support [Support request] Hamburger icon customisation and animation

Home Forums Support Hamburger icon customisation and animation

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1011073
    JBD

    Hi
    Could you help me to create customised hamburger menu, with middle line offset to the right by a
    eg



    Also, is there a way to create “nolink” menu items (apart from custom # link and unclickable class
    .unclickable > a:hover {
    cursor: default;
    }

    Finally, is there a way to animate the off canvas drop down menu? (when sub menus expand and collapse?)
    Thanks

    #1011821
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Animated hamburgers are hard to achieve, but this topic should get you started: https://generatepress.com/forums/topic/spinning-hamburger/#post-976278

    Once you have that working, we should be able to adjust the lines to achieve what you’re after.

    Let’s work on one thing at a time – once we complete the first thing, we’ll move onto the next questions.

    Let me know 🙂

    #1016447
    JBD

    Thanks,
    Its not the hamburger icon I need to animate (but the code is useful so thanks), it was the actual off canvas menu I want to animate, eg when a menu item is expanded in the off canvas menu.

    #1016918
    Tom
    Lead Developer
    Lead Developer

    Do you have any examples of the animation you’re wanting to achieve?

    #1017028
    JBD

    I guess something like this. But with option to work with sub menus.
    menu

    #1017152
    Tom
    Lead Developer
    Lead Developer

    Is that a page I can take a look at? It would help to see the CSS they’re using.

    #1017163
    JBD
    #1017814
    Tom
    Lead Developer
    Lead Developer

    Give this a shot:

    .slideout-menu {
        transform: translateY(-100px);
        opacity: 0;
        transition: transform 400ms ease-in-out, opacity 500ms ease-in-out;
    }
    
    .slide-opened .slideout-menu {
        transform: translateY(0);
        opacity: 1;
    }
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.