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 eachadd/remove/remainanimation finishes (not on cancel). Forremovethe 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:autoAnimatestill 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; handlesborder-spacing/border-collapse, header rows and scaled tables in Chrome, Firefox and Safari. (#7, #260)
📚 Docs
- Tips for scrollbar flicker in
overflow: autocontainers (#16) and for stretching flex items (flex: 1) (#70).
All new options default to off/unchanged, so existing behavior is the same.