Repository navigation
Releases: shadowjs-dev/motion
Releases · shadowjs-dev/motion
Release list
1.0.3
Fixed
- A second
playFlipwhile 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. useSpringcuts each frame into steps of at most 1/120 s, so a slow frame (64 ms) no longer makes a stiff spring diverge.animatewith reduced motion setsdelayandendDelayto zero too, so the final state is not held back.playFlipwithout Web Animations leaves the child's own inlinetransformalone instead of leavingtranslateY(0px)behind.
1.0.2
Fixed
useTweenends on the target value exactly, whatever the easing returns at the end and whatever floating-point rounding does.useSpringwith 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.usePresenceplaysenteron an element thatrefreceives after the content was unmounted and shown again.
1.0.1
Changed
- Released at 1.0.1 with the other packages, which share one version. No change to this package.
1.0.0
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.