vsn-show
vsn-show toggles an element’s visibility using display: none, but keeps it in the DOM.
Basic usage
<div class="panel" vsn-show="open"></div>
behavior .panel {
open: true;
}
vsn-show vs vsn-if
vsn-show keeps the element in the DOM.
vsn-if removes/creates the element.