Hello my fixed header is supposed to be transparent and then turn white when a user scrolls just like in the https://www.wix.com/code/home/example/Frozen-Header example.
Here is the code I used:
export function header1_viewportLeave(event) {
$w(‘#headerMain’).show();
$w(‘#headerTwo’).hide();
}
export function header1_viewportEnter(event) {
$w(‘#headerMain’).hide();
$w(‘#headerTwo’).show();
}
It only works in Preview mode but not when the site is published. It was working earlier today, but then it just stopped. My site is aprilharrid.com Please help me to get this working again.