Show an element hidden on launch

Thank you, it shows it now, it seems like it was the matter of placing the “hide” command within the onReady bracket.

I don’t know why though, it treats setTimeout as a delay here. It basically shows it three seconds later but never hides it again.

Probably I’m doing something wrong again…

$w.onReady( () =>
{
$w('#email').onClick( () => {
    wixWindow.copyToClipboard("email address")
 .then( () =>
        {
        setTimeout(()=>{
        $w("#popup").show();
        },3000);
        });
 });
});

My rationale: I wanted to “timeout” the “show” function after 3000.