Hides or shows the given element with a smooth fading transition.
IMPORTANT: When constructed, it will remove any lisn-hide class from the element as a form of initialization.
lisn-hide
To use with auto-widgets (HTML API) as part of a trigger specification:
<button id="btn">Show/hide</button><div data-lisn-on-click="@hide +target=#btn"></div> Copy
<button id="btn">Show/hide</button><div data-lisn-on-click="@hide +target=#btn"></div>
Static
Readonly
Hides the element with a smooth fade out transition.
Shows the element if it is hidden, hides it otherwise.
Shows the element with a smooth fade in transition.
Hides or shows the given element with a smooth fading transition.
IMPORTANT: When constructed, it will remove any
lisn-hide
class from the element as a form of initialization.To use with auto-widgets (HTML API) as part of a trigger specification:
Example