Elements & Components
Multi-state box.
Display different pieces of content, one state at a time using a Multi-state box. Use this to reveal content when site visitors hover or click, or based on specific conditions.
{Section Title}
{Section Description}

{Section Title}
{Section Description}

{Section Title}
{Section Description}

{Section Title}
{Section Description}

{Section Title}
{Section Description}

{Section Title}
{Section Description}

{Section Title}
{Section Description}

{Section Title}
{Section Description}

Intro
TRY IT YOURSELF
Exercise on multi-state box.
Open Academy X from desktop to complete this exercise.
01
Turn on dev mode. From the top bar click on dev mode and then on Turn on Dev mode.
02
Add a new state. Click on the Multi-state box element and then on Manage State from the floating menu. From the panel that opens up, click on Add New State.
03
Change the state ID. Click on the 3 dots next to the new state you’ve added. Choose Edit ID and change it to myNewState.
04
Design the new state. Click on the container and change its background color. To do so, open the Inspector panel, click on the design tab and choose a background color. You can then also add any elements you’d like to this state.
05
Change the ID of the button. Above the Multi-state box click on the Add New State button and, from the Properties and events panel, change it’s ID to newStateBtn.
06
Add code. To define which state will be displayed when each button is clicked, add the following code to the code panel inside the onReady function:
$w('#packagingBtn').onClick(() => {
$w('#multiStateBox').changeState('packaging');
});
$w('#artDirectionBtn').onClick(() => {
$w('#multiStateBox').changeState('artDirection');
});
$w('#newStateBtn').onClick(() => {
$w('#multiStateBox').changeState('myNewState');
});
07
Preview the result. Click on Preview and click on each button to see how the states change.
{No.}
{Exercise Description}
Open Academy X from desktop to complete this exercise.
Did you find this resource helpful?
Thank you for your feedback!
Next lessons.

WEB CONCEPTS
Masters
Find out how to save & reuse your designs to streamline your workflow.

CONTENT MANAGEMENT
Content Manager
See how to create and store heavy or dynamic site content using database collections.

CONTENT MANAGEMENT
Datasets
Use datasets to display content from the Content Manager on a site, and update the content without touching the design.
Related learning resources.

VIDEO LIBRARY
Title
Learn how to add new sections, rearrange them & flip them to vertical.
▶

LESSONS & EXERCISES
Title
Learn how to work with sections—the building blocks of your site.
▶

VIDEO LIBRARY
Title
Get to know where you control size, position and behavior of all elements.
▶

LESSONS & EXERCISES
Title
Learn how to take precise control over the positioning of elements using grid.
▶

Ready to start creating?

Top searches
People are searching for
VIDEO LIBRARY
Introducing Editor X
Discover the Editor X workspace. Get an introduction to your advanced layouting tools and an overview of responsive web design features like breakpoints, flexbox and CSS grid.
VIDEO LIBRARY
Getting Started
Learn the basics of creating a site on Editor X. Get a step by step walkthrough covering the key features and capabilities.
LESSONS & EXERCISES
Hover Interactions
Design dynamic web experiences by adding a variety of interactions to any element on hover. Customize the interaction settings for every breakpoint, from transform adjustment to advanced design capabilities and timing control.