- This topic has 26 replies, 6 voices, and was last updated 8 years, 12 months ago by
Tom.
-
AuthorPosts
-
April 4, 2017 at 5:10 pm #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-scrollIt’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
April 4, 2017 at 11:11 pm #301875Jasper
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).
April 5, 2017 at 10:12 am #302149Tom
Lead DeveloperLead DeveloperThis 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 ๐
April 5, 2017 at 10:14 am #302152Jasper
thanks, but i’ll wait….
April 5, 2017 at 11:35 am #302208Brett
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
April 5, 2017 at 12:43 pm #302244Tom
Lead DeveloperLead DeveloperCan you set the transition to “None”?
April 5, 2017 at 12:46 pm #302247Brett
Done ๐
April 5, 2017 at 12:49 pm #302248Tom
Lead DeveloperLead DeveloperThrow 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; }April 5, 2017 at 12:53 pm #302250Brett
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
April 5, 2017 at 2:02 pm #302271Tom
Lead DeveloperLead DeveloperApril 5, 2017 at 2:09 pm #302274Brett
AWESOMENESS!!
Thanks Tom…
The old > eh!
Many thanks.. It’s really appreciated..
๐
Brett
April 5, 2017 at 2:12 pm #302276Tom
Lead DeveloperLead DeveloperGlad I could help! ๐
-
AuthorPosts
- You must be logged in to reply to this topic.