top of page

Multi-State Pre-Loader in Wix



Velo Code:


$w.onReady(function () {

$w('#mediaPlayer1').onEnded(() => {
    $w('#PreloaderStateBox').changeState("Intro");
});

$w('#button1').onClick(() => {
    $w('#PreloaderStateBox').changeState("Expanded");
});

$w('#button20').onClick(() => {
    $w('#PreloaderStateBox').changeState("Intro");
});
});

Enjoy!

bottom of page