top of page

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

Anchor
Anchor
Anchor
Anchor
Anchor
Anchor
Anchor
Anchor

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.

Open advanced exercise on the editor →

{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.

Thumbnail indicating masters. Pale blue background with a blue workspace over it and a white icon in the middle.

WEB CONCEPTS

Masters

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

Thumbnail indicating breakpoints. Green background with a green shaded box over it and a white icon in the middle.

WEB CONCEPTS

Breakpoints Part 2

Get to know the cascading rule and how to override it.

Thumbnail indicating the content manager. Green background with 3 paler green boxes over it and a black icon in the middle.

CONTENT MANAGEMENT

Content Manager

See how to create and store heavy or dynamic site content using database collections.

Clickable thumbnail image for lesson about datasets.

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.

Watch Now

LESSONS & EXERCISES

Title

Learn how to work with sections—the building blocks of your site.

Start Lesson

VIDEO LIBRARY

Title

Get to know where you control size, position and behavior of all elements.

Watch Now

LESSONS & EXERCISES

Title

Learn how to take precise control over the positioning of elements using grid.

Start Lesson

Ready to start creating?

Search icon
Home icon
LESSONS & EXERCISES
Arrow down icon
VIDEO TUTORIALS
Arrow down icon
External link icon
External link icon

Top searches

People are searching for

Video tutorial introducing the Editor X workspace with an overview of the responsive layouting and design tools.

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 introducing the Editor X workspace with an overview of the responsive layouting tools and design capabilities.

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.

Thumbnail indicating interactions. Orange background with a shaded orange container over it. In the middle of the container is a white logo.

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.

See all results ▶
ACADEMY MENU ▶
Search icon
bottom of page