top of page
atlan logo green.png

Start a project

Start a project

Selected work
Multi-State Pre-Loader in Wix

Practical guides on Wix Studio, Velo, Squarespace, e-commerce and SEO — written from real client projects.

​

​
Share Post

Keep reading

Journal

Multi-State Pre-Loader in Wix

Writer: Atlan Design
Atlan Design
Dec 15, 2020
1 min read

Updated: Sep 19

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

Wix multi-state preloader animation controlled with Velo

$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!

Comments


bottom of page