I applied this code
function logoSwitch () {
$('.altLogo').each(function() {
$(this).css('top',
$('.startLogo').offset().top - $(this).closest('.row').offset().top
);
});
};
$(document).scroll(function() {logoSwitch();});
logoSwitch();
Over this website
https://archillect-2.webflow.io/#7
But I need it exactly like https://www.bornfight.com
When you scroll to another div Immediately change the logo and menu not wait to the exact position to change.
should I apply the class (startlogo) somewhere else?
Thanks