fixedunderrefactor

This commit is contained in:
Kishore Kumar C
2026-05-07 18:37:51 +05:30
parent 687d0547a0
commit a4f9a2e89a
3 changed files with 28 additions and 19 deletions

View File

@@ -525,24 +525,7 @@
<script>
(function($) {
$(window).on('load', function() {
// Header scroll visibility
const $header = $('.header-hide-until-scroll');
// Show header once the page has fully loaded to avoid the initial flicker
// but keep it visible even in the landing section.
$header.addClass('header-visible-scrolled');
$(window).scroll(function() {
const scrollTop = $(this).scrollTop();
// Keep it visible throughout, but we can add logic if we want
// a specific effect. Since the user wants it visible in landing too:
if (scrollTop >= 0) {
$header.addClass('header-visible-scrolled');
}
});
// Apply shrink to sections after hero
// Apply shrink to sections after hero (Homepage specific)
$('.elementor-61 > .e-parent').not(':first').addClass('section-shrink');
});
})(jQuery);