I currently have a code running to where when you open the home page of my site, a logo pops up in front of a white background and then fades out. However, when you go to another page and then back to the home page, it happens again. Is there a code I can add to where this only happens the first time the user visits the home page? Here is the code I am using:
$w.onReady(() => {
waitForLoading();
});
export function button6_onClick(){
$w( ‘#columnStrip1’ ).show();
waitForLoading();
}
function waitForLoading(){
setTimeout(() => {
$w( ‘#columnStrip1’ ).hide( ‘FadeOut’ );
}, 2750 );
}
Thanks in advance!