top of page

Collapsible Sections with Multi-State Boxes



Velo Code:


// Apple
    $w('#image1').onClick(() => {
        $w('#multiStateBox1').changeState("msb1State2");
    })

    $w('#image2').onClick(() => {
        $w('#multiStateBox1').changeState("msb1State1");
    })


    // Pear
    $w('#image3').onClick(() => {
        $w('#multiStateBox2').changeState("msb2State2");
    })

    $w('#image4').onClick(() => {
        $w('#multiStateBox2').changeState("msb2State1");
    })

Enjoy!

Comments


bottom of page