Hello.
I have used viewportLeave/Enter on a strip in order to change the header when scrolling down. It works fine in the editor’s preview but doesn’t work at all on the live published site.
Any ideas?
Thank you,
Ofer.
This is the code:
let fadeOptions = {
“duration”: 300,
“delay”: 0
};
export function header1_viewportLeave(event) {
$w(‘#columnStrip1’).show(“fade”, fadeOptions);
$w(‘#text4’).hide(“fade”, fadeOptions);
$w(‘#text3’).show(“fade”, fadeOptions);
}
export function header1_viewportEnter(event) {
$w(‘#columnStrip1’).hide(“fade”, fadeOptions);
$w(‘#text3’).hide(“fade”, fadeOptions);
$w(‘#text4’).show(“fade”, fadeOptions);
}