performs an expand/collapse transition on an element
yarn add element-collapse
import { expand, collapse } from 'element-collapse'
const el = document.querySelector('#my-element')
expand(el, () => {
// callback for when the element is fully transitioned
// you can emit events from here, or target content inside 'el'
})
// or async
await expand(el)
// do your after-transition stuff here!