Skip to content

v1.2.6

Compare
Choose a tag to compare
@smastrom smastrom released this 03 Aug 23:47
· 15 commits to main since this release
d29bfcf

What's improved

  • Collapse is now more performant, using only one requestAnimationFrame call per expand/collapse. This was achieved by streamlining the logic behind retrieving the auto duration value, which is now only captured on mount.
  • No longer enforcing margin: 0 and border: 0 on the Collapse element fixed styles.
  • When baseHeight dynamically updates to 0 on collapsed state, display: hidden is now added on the Collapse element styles.
  • Added examples to the README on how to use different easing and durations per expand/collapse.