- This topic has 11 replies, 2 voices, and was last updated 3 years, 7 months ago by
Leo.
-
AuthorPosts
-
October 8, 2018 at 12:43 pm #696536
Diogenes
Hi.
It is possible that the sticky bar of generatepress shows the effects that are seen on this page, especially the logo that shrinks and becomes large depending on the scroll, as well as smoothness in transitions.
Thanks in advance.
GeneratePress 2.1.4GP Premium 1.7.2October 8, 2018 at 12:51 pm #696545Leo
StaffCustomer SupportHi there,
Been meaning to write an doc article on this…
This can be done by following the steps here:
https://docs.generatepress.com/article/navigation-logo/#navigation-as-headerThen set the sticky navigation height to something smaller than the static navigation height:
https://docs.generatepress.com/article/menu-item-height-width/
https://docs.generatepress.com/article/sticky-navigation/#menu-item-heightLet me know if this helps π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 8, 2018 at 2:29 pm #696597Diogenes
The transition effect is very good.
The only thing I notice is that when the logo is much wider than high (like my logo = 281×27) it stretches totally and looks very bad, this trying to make the height of the navigation bar at least 72px high.
Is there any way for the logo to maintain the original proportion?
October 8, 2018 at 2:32 pm #696599Leo
StaffCustomer SupportCan you link me to the site in question?
You can edit the original topic and use the private URL field.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 8, 2018 at 2:41 pm #696610Diogenes
Edit the post and add the link.
October 8, 2018 at 6:23 pm #696689Leo
StaffCustomer SupportNot quite sure what you mean.
Your logo image is only 27px in height:
[link removed]So when the static navigation height is set at 74px, it image will look blurry because it’s zoomed in.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 8, 2018 at 6:37 pm #696695Diogenes
I already solved it, create a logo with more height.
You can delete the link from my website, it is a current project and I do not want it to be shown.
Thanks for the help.
October 8, 2018 at 6:39 pm #696697Leo
StaffCustomer SupportThe link you provided in the original topic is a private link so only admin of this site can see and not to public.
I’ve removed it anyways π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 8, 2018 at 6:54 pm #696706Diogenes
I refer to the link where references to the image of my site:
https://generatepress.com/forums/topic/effects-in-the-sticky-bar/#post-696689
Anyone can see it.
October 8, 2018 at 7:15 pm #696713Leo
StaffCustomer SupportAhh missed that.
Removed.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 8, 2018 at 7:17 pm #696715Diogenes
Thanks Leo for your help.
October 8, 2018 at 7:17 pm #696716Leo
StaffCustomer SupportNo problem π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.