<animated-collapse> element
<animated-collapse> element makes it easy and simple to collapse wrapped elements with animation.
This element is built with Web Components. It works only with browsers supporting Custom Elements and Shadow DOM.
Install
yarn add @yuheiy/animated-collapse-element
Usage
import AnimatedCollapse from '@yuheiy/animated-collapse-element'
customElements.define(AnimatedCollapse.is, AnimatedCollapse)
<animated-collapse>
<p>Place your content here!</p>
</animated-collapse>