Skip to content

Releases: hanielu/motion-svelte

motion-sv@0.1.10

02 Feb 07:05

Choose a tag to compare

Patch Changes

  1. Add use-in-view and use-in-page-view

  2. 🐛 Bug Fix: AnimatePresence mode="wait" now works correctly in SvelteKit

    Fixed

    • AnimatePresence mode="wait" not working on first toggle in SvelteKit - Elements would appear immediately instead of waiting for the exit animation to complete. This was caused by SvelteKit's bundling optimization skipping the intro transition call, making the first outro call incorrectly identified as an intro.

    Changes

    • Added element exit state tracking via onoutrostart event to correctly distinguish between intro and outro transition calls
    • Used globalThis for internal WeakSet storage to ensure state persists across module boundaries in SvelteKit's bundling environment

    Details

    In SvelteKit, Svelte may optimize away the intro transition call when no animation is needed on mount. This caused the transition function to treat the first outro call as an intro (since the node hadn't been seen before), resulting in a skipped exit animation. The fix marks elements as "exiting" when onoutrostart fires, allowing the transition function to correctly identify outro calls regardless of whether an intro was previously triggered.

motion-sv@0.1.9

26 Jan 18:42

Choose a tag to compare

Patch Changes

  • Ensuring proper animation behavior during exits.

motion-sv@0.1.8

18 Dec 05:40

Choose a tag to compare

Patch Changes

  • Fix lazy motion feature manager

motion-sv@0.1.7

18 Dec 03:47

Choose a tag to compare

Patch Changes

  • fix circular dependencies

motion-sv@0.1.6

18 Dec 03:11

Choose a tag to compare

Patch Changes:

  • Stabilise nodeRef attachment

motion-sv@0.1.5

15 Dec 16:10

Choose a tag to compare

Fix:

  • drop the null default from the motion component’s bindable ref

motion-sv@0.1.4

15 Dec 15:27

Choose a tag to compare

Changes:

  • Refactored createLayoutMotion to support calling without a base argument (e.g., createLayoutMotion()), defaulting to the standard motion instance.
  • handle elements with void tags

motion-sv@0.1.3

11 Dec 19:57

Choose a tag to compare

  • Fixed: #4 #1
  • Play exit animations and layout animations at the same time

motion-sv@0.1.2

16 Sep 19:31

Choose a tag to compare

Patch

  • handle undefined exit prop for <AnimatePresence> children

0.1.1

16 Sep 17:50

Choose a tag to compare

Patch

  • Enhance animation transition so that staggerChildren works