90%
top of page

Add a Title

Add a Title
Published Date
Published Date
Tags
0 Comments
Views
Share Post

Comment

successMessage

errorMessage

Add a Title

Add paragraph text. Click “Edit Text” to update the font, size and more. To change and reuse text themes, go to Site Styles.

Add a Title

No comments yet. Be the first to comment!"

Related Posts

Start Now
Start Now

Add paragraph text. Click “Edit Text” to update the font, size and more. To change and reuse text themes, go to Site Styles.

Add a Title

Start Now
Start Now

Add paragraph text. Click “Edit Text” to update the font, size and more. To change and reuse text themes, go to Site Styles.

Add a Title

Start Now
Start Now

Add paragraph text. Click “Edit Text” to update the font, size and more. To change and reuse text themes, go to Site Styles.

Add a Title

  • Writer: @lan Design
    @lan Design
  • Dec 15, 2020
  • 1 min read

Updated: Dec 29, 2023

In this lesson, you will learn how to add a pre-loader to your Wix websites using multi-state boxes.

Pre-Loader

 
$w.onReady(function(){

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

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

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

});

 

Make sure if your elements have different names, that you change them to match the code. Or visa versa.


Have Fun!

Komentāri


bottom of page