1. vtom007
  2. Sherlock Holmes
  3. Commercial Templates
  4. Monday, 23 February 2026
  5.  Subscribe via email
I am using a Joomla51 template with the “Sticky Header” option enabled. A large graphic is used as the logo.

Is it possible to configure it so that when scrolling down, the graphic disappears completely instead of just becoming smaller? The menu bar should remain fixed at the top.

Thank you.
Accepted Answer Pending Moderation
0
Votes
Undo
ChatGPT say:

/* Ausgangszustand */
.logo {
overflow: hidden;
max-height: 300px; /* ungefähr die aktuelle Logo-Höhe */
transition: max-height 0.5s ease, padding 0.5s ease;
}

.logo-image.primary-logo-image {
display: block;
transition: transform 0.5s ease, opacity 0.4s ease;
}

/* Sticky-Zustand */
.sticky-wrapper.is-sticky .logo {
max-height: 0;
padding-top: 0;
padding-bottom: 0;
}

.sticky-wrapper.is-sticky .logo-image.primary-logo-image {
transform: translateY(-100%);
opacity: 0;
}
Accepted Answer Pending Moderation
0
Votes
Undo
And does it also work if you enter it into the custom CSS?
Accepted Answer Pending Moderation
0
Votes
Undo
And does it also work if you enter it into the custom CSS?


Yes, it works with the Jasmine template. However, you should note that with this CSS code, the mobile logo cannot be used. It would probably need an additional rule to hide the main logo in responsive mode.

However, this is sufficient for me.
Accepted Answer Pending Moderation
0
Votes
Undo
Okay, best of luck! :)
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!