Multi-State Pre-Loader in Wix
- Ryan Shafer
- May 10, 2024
- 1 min read
Updated: Jun 12, 2024
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");
});
});