ViewportLeave not working on live site

Hi all…

Anyone know why this code:

export function box3_viewportLeave(event) {
$w(“#box3”).hide(“slide”, slideOptions);
}
is working fine in the preview mode, but not on live site?

We need more information to check the issue on our end. Can you provide the context? A screencast and your editor link will be of great assistance.