show( )

Shows the element and sets its hidden property to false, using an effect if specified.


The show() function shows the element and returns a Promise that is resolved when the effect is complete and the element's hidden property has been set to false.

You can optionally apply an effect when showing the element by providing an effectName value. You can also customize the effect by providing the optional effectOptions object.

This table shows possible effectName values and their corresponding names in the editor:

Effect Name ValueEditor Animation Name


  • In Editor X, show () will not make an element visible for a given breakpoint if the element has been set to "Don't Display" for that breakpoint. Calling show() will however, change the hidden property of the element to false.
  • It is recommended not to mix show and hide with "Don't Display" in Editor X.



This endpoint does not take any parameters

Response Object

Fulfilled - When the effect is complete and the element's hidden property has been set to false.

Returns an empty object.

Status/Error Codes

Related Content:

Was this helpful?

Show an element with no effect

Copy Code
Show an element with the "fade" effect

Copy Code
Show an element with the "fade" effect and custom options

Copy Code
1let fadeOptions = {
2 "duration": 2000,
3 "delay": 1000
6$w("#myElement").show("fade", fadeOptions);
Show an element with an effect and log a message when the effect is done

Copy Code
2 .then( ( ) => {
3 console.log("Done with fade");
4 } );
Toggle an element's hidden state

Copy Code
1if( $w("#myElement").hidden ) {
2 $w("#myElement").show();
4else {
5 $w("#myElement").hide();