Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Sticky navigation’s logo weird behavior

  • Hello,

    The person whom I’m making a website for didn’t like the fact that the sticky navigation disappears for an instant and reappears when we first slowly scroll the page, due to the ‘Fade’ transition. So I put the transition to ‘None’. But now I noticed a weird changing of size: the logo appears bigger for just a second when we scroll – see video here: https://chk.me/qylyaN1

    Do you know what’s causing this and how to have a smoother transition even without the fading transition of the whole sticky nav?

    I added access to the website in the private info part.

    Thanks!

  • Hi there,

    Under Customize > Layout > Sticky Navigation, try leaving the Menu Item Size field empty so it uses the default setting.

  • Hi Alvind,

    Thanks for the quick answer! It works but I originally put a smaller size in here because the logo is too big with the default setting…
    Is there another solution?

  • Okay, revert the previous Menu Item Size value, and do this:

    Go to Customize > Layout > Header and enable Use Navigation as Header option.

    Then add this CSS to restore the original navigation padding:

    .main-navigation.has-branding .inside-navigation.grid-container,
    .main-navigation.has-branding.grid-container .inside-navigation:not(.grid-container) {
        padding: 20px 40px 20px 40px;
    }
  • I tried it but I still have the same issue: loom.com/share/6003ded40a49487d97fba1afd287c221

    And I don’t want that much padding on the sticky navigation.

  • If you do not want any transition, you can use CSS instead of the GP sticky navigation.

    So disable the sticky navigation, and add this CSS:

    nav#site-navigation {
        position: sticky;
        top: 0;
    }
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.