Skip to content

Releases: shadowjs-dev/motion

1.0.3

Choose a tag to compare

@github-actions github-actions released this 29 Oct 10:19

Fixed

  • A second playFlip while the first one runs cancels the running move before it measures, so the new move starts from where the child shows and not from the old transform.
  • useSpring cuts each frame into steps of at most 1/120 s, so a slow frame (64 ms) no longer makes a stiff spring diverge.
  • animate with reduced motion sets delay and endDelay to zero too, so the final state is not held back.
  • playFlip without Web Animations leaves the child's own inline transform alone instead of leaving translateY(0px) behind.

1.0.2

Choose a tag to compare

@github-actions github-actions released this 29 Oct 00:59

Fixed

  • useTween ends on the target value exactly, whatever the easing returns at the end and whatever floating-point rounding does.
  • useSpring with a stiffness or mass that is not positive, or a negative damping, snaps to the target on its first frame; before, no stiffness requested frames for ever and a negative one flew away from the target.
  • usePresence plays enter on an element that ref receives after the content was unmounted and shown again.

1.0.1

Choose a tag to compare

@github-actions github-actions released this 28 Oct 05:30

Changed

  • Released at 1.0.1 with the other packages, which share one version. No change to this package.

1.0.0

Choose a tag to compare

@github-actions github-actions released this 22 Oct 09:43

Added

  • Reactive animation helpers for springs, transitions, presence and layout motion.
  • Reduced-motion handling and lifecycle cleanup for browser animations.

Fixed

  • Springs stop requesting frames for invalid precision and settle exactly when damped motion
    reaches a floating-point fixed point, including precision below the representable resolution.