Wix Tutorial - Button to Open a Strip, using Wix Code

When a user clicks on a button, a box expands. When the user moves the mouse outside of the box, then the box collapses. This can be useful when coding a mega menu. The same can be done with strips.


  • Blue Button: #button1

  • Orange Button: #button2

  • Blue Box: #menubox1  |  Collapsed on load

  • Orange Box: #menubox2  |  Collapsed on load

Wix Code:

export function button1_click(event) {

export function button2_click(event) {

export function menubox1_mouseOut(event) {

export function menubox2_mouseOut(event) {



Click on the buttons below to expand the boxes that are currently collapsed.

Menu Box Collapse and Expand.jpg

Websites designed by WixCreate that use the above Wix Code: