Shrink Header And Logo On Scroll - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Shrink Header And Logo On Scroll

K

komir

Template 3 years ago

Hi I am using HelixUltimate core. How can make header and logo to shrink when user start to scroll page, sometnihg like this https://www.synlawn.com/news/ Thank you

0
2 Answers
Ariba
Ariba
Accepted Answer
Support Agent 3 years ago #85804

Hello

Thank you for your query.

After enabling sticky header please add the following css rules in custom css section

#sp-header.header-sticky {
    height: 50px;
}

#sp-header.header-sticky .logo {
    height: 50px;
}

#sp-header.header-sticky #offcanvas-toggler {
    height: 50px;
}

#sp-header.header-sticky .sp-megamenu-parent > li > a, .sp-megamenu-parent > li > span {
    line-height: normal;
}

Hope this helps you!

0
JK
Jeffrey Kiefer
Accepted Answer
3 years ago #89349

Is there also a way to set the logo itself to get smaller on page scroll. The above works well for the header but does not change the size of the logo inside the header. I thought the snippet would do it but it had no effect on the logo size.

#sp-header.header-sticky .logo {
    height: 50px;

Even better would be a way to display a different logo on page scroll. I don't know if that is even possible.

0