Request: Sticky Animated Resizing Header On Scroll

Home Forums Support Request: Sticky Animated Resizing Header On Scroll

Home Forums Support Request: Sticky Animated Resizing Header On Scroll

  • This topic has 26 replies, 6 voices, and was last updated 7 years ago by Tom.
Viewing 12 posts - 16 through 27 (of 27 total)
  • Author
    Posts
  • #301800
    Brett

    Cheers Tom…

    However I am well versed in adding CSS πŸ™‚ heh..

    I’m trying to get my head around implementing:
    http://callmenick.com/post/animated-resizing-header-on-scroll

    It’s something I have been wanting to do in GeneratePress since I first tried it.

    I’m after the shrinking logo animation with shrinking menu bar sticky effect as was done on thinkbigatsquareone.com

    Can you help with that at all? πŸ™‚

    Cheers,

    Brett

    #301875
    Jasper

    I would love to see this ‘Sticky Animated Resizing Header On Scroll’ as an option in the customizer. I think it would make it a lot easier to implement for a lot of people (including me).

    #302149
    Tom
    Lead Developer
    Lead Developer

    This is definitely going to be an option very soon πŸ™‚

    For now, this is the first step: https://generatepress.com/forums/topic/request-sticky-animated-resizing-header-on-scroll/#post-242543

    Once you get that start done, let me know and link me to your site and we can complete the resizing animation πŸ™‚

    #302152
    Jasper

    thanks, but i’ll wait….

    #302208
    Brett

    Heya Tom…

    Thanks!
    Look forward to seeing this introduced in the future…

    For now tho…

    I’ve got the basics ready

    Can you help from there?

    Cheers,

    Brett

    #302244
    Tom
    Lead Developer
    Lead Developer

    Can you set the transition to “None”?

    #302247
    Brett

    Done πŸ™‚

    #302248
    Tom
    Lead Developer
    Lead Developer

    Throw this CSS in there:

    .main-navigation .main-nav ul li a, 
    .menu-toggle, 
    .main-navigation .mobile-bar-items a,
    .navigation-logo img {
        transition: line-height 200ms ease-in-out, height 200ms ease-in-out;
    }
    
    .main-navigation.navigation-stick .main-nav > ul > li > a, 
    .navigation-stick .menu-toggle, 
    .main-navigation.navigation-stick .mobile-bar-items a {
        line-height: 60px;
    }
    
    .navigation-stick .navigation-logo img {
        height: 40px;
    }
    #302250
    Brett

    Cheers Tom!

    That’s the kiddie..!!

    Although it creates one tiny issue..

    Check the menu – and then when you scroll check it again.
    It adds extra line spacing…

    EDIT: I mean the sub menus!

    πŸ™‚

    Brett

    #302271
    Tom
    Lead Developer
    Lead Developer
    #302274
    Brett

    AWESOMENESS!!

    Thanks Tom…

    The old > eh!

    Many thanks.. It’s really appreciated..

    πŸ™‚

    Brett

    #302276
    Tom
    Lead Developer
    Lead Developer

    Glad I could help! πŸ™‚

Viewing 12 posts - 16 through 27 (of 27 total)
  • You must be logged in to reply to this topic.