fixedunderrefactor
This commit is contained in:
19
index.php
19
index.php
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user