top of page

Automated Slideshow in Wix Studio

Updated: Jun 12



Velo Code:


$w.onReady(function () {
    var states = ['box2', 'box1'];
    var stateNumber = 0;

    function slideShow() {
        $w('#multiStateBox1').changeState(states[stateNumber]);
        if (stateNumber<states.length - 1) {
            stateNumber++;
        } else {
            stateNumber = 0;
        }
        setTimeout(slideShow,6000);
    }
    slideShow();    
});

Enjoy!

Comments


bottom of page