@itemconsulting/details-animated
v0.0.6
Published
[![npm version](https://badge.fury.io/js/@itemconsulting%2Fdetails-animated.svg)](https://badge.fury.io/js/@itemconsulting%2Fdetails-animated)
Downloads
15
Readme
Custom component for animating details/summary elements
Usage
Register the custom element with JavaScript.
import DetailsAnimated from "@itemconsulting/details-animated";
if (!window.customElements.get("details-animated")) {
window.customElements.define("details-animated", DetailsAnimated);
}
Use the custom element to wrap a <details>
/<summary
.
<details-animated>
<details>
<summary>Open this nice animated disclosure</summary>
This part here will animate in nicely!
</details>
</details-animated>