github formkit/auto-animate v0.11.0

49 minutes ago

A big one for a small library 🎬

✨ New

  • animations: turn single animations off and keep the defaults for the rest, e.g. autoAnimate(el, { animations: { remain: false } }) next to drag-and-drop libraries that already move items. (#153, #255)
  • onAnimationEnd(el, action): a callback when each add / remove / remain animation finishes (not on cancel). For remove the element has already left the DOM. (#37, #255)
  • stagger: items added together cascade in, e.g. autoAnimate(list, { stagger: 60 }). Only entry animations are delayed; waiting items stay hidden. (#44, #256)
  • Svelte 5 attachment: import { autoAnimate } from '@formkit/auto-animate/svelte', then <ul {@attach autoAnimate}> or {@attach autoAnimate({ duration })} (options stay reactive). use:autoAnimate still works. (#235, #257)

🐞 Fixes

  • Table rows: a removed <tr> keeps its cell layout while it fades out. No more collapsed cells or rows floating outside the table; handles border-spacing/border-collapse, header rows and scaled tables in Chrome, Firefox and Safari. (#7, #260)

📚 Docs

  • Tips for scrollbar flicker in overflow: auto containers (#16) and for stretching flex items (flex: 1) (#70).

All new options default to off/unchanged, so existing behavior is the same.

Don't miss a new auto-animate release

NewReleases is sending notifications on new releases.