v1.1.0
What's new
- Solid Collapse now calculates the optimal duration according to your content height. You can opt-it by referencing the variable
--sc-auto-duration
in your transition property:
.my-transition {
transition: height var(--sc-auto-duration) cubic-bezier(0.65, 0, 0.35, 1);
}
onCollapsed,
onExpanded
callbacks are now available as props.
What's improved
margin: 0
,padding: 0
andborder: 0 none
are now always enforced on the collapse element.
Update now: yarn add vue-collapsed@latest