Skip to content

fabric-ds/element-collapse

Repository files navigation

element-collapse

performs an expand/collapse transition on an element

install

yarn add element-collapse

use

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!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published