Edit this page

up.Preview up.Preview.prototype.show([element])
Instance method

Temporarily shows a hidden element.

The element will be hidden when the preview ends.

Example

This preview shows a hidden #spinner element while the request is loading:

up.preview('show-spinner', function(preview) {
  preview.show('#spinner')
})

Parameters

[element=this.fragment] Element|string optional

The element or selector to change.

If omitted, the targeted fragment will be changed.