Skip to content

v1.0.0

Latest

Choose a tag to compare

@tobyzerner tobyzerner released this 23 Mar 00:27
7169a7c

⚠ BREAKING CHANGES

  • The package is now published as transition-kit. Update installs and imports from hello-goodbye to transition-kit.
  • hello and goodbye have been renamed to enter and leave.
  • transition, enter, and leave now resolve Promise<boolean> instead of Promise<void>. They resolve true when a transition completes and false when it is cancelled or superseded.
  • leave still does not remove elements automatically, but consumers should now only remove the element when the returned Promise resolves true.

Features

  • add resize() for animating container width and height across DOM mutations
  • make leave() detach normally in-flow elements from layout by default so sibling move() transitions can run without CSS positioning hacks
  • track enter/leave transitions, move transitions, and resize transitions independently so overlapping animations clean up reliably
  • improve interrupted animation cleanup so inline transform, size, and transition-duration styles are restored correctly