Motion / Changelog925 releases
Changelog
Releases across Motion, Motion+, and Motion AI Kit.
Fixed
- Reduced filesize of
styleEffect. - Fix rounding from
popLayout. opacityanimations in React Strict Mode in development.- Ensure
useSpringis not affected by monitor framerate. - Updating animations sequence segment types to exclude lifecycle handlers.
- Fix layout animations with parents offset by a
%-based translation. - Fix
autoplay: falsewith WAAPI animations. - Fix layout jump in React Strict Mode in development.
- Detect divide-by-zero in CSS
calc()values before making animatable templates.
- Reduced filesize of
Fixed
- Fixing combination of string keyframes, spring and
delay. - Gracefully handle negative scroll values.
- Fix one-frame visual gap when rapidly switching WAAPI animations.
animation.time = 0on a finished animation sets the playhead in a paused state.
- Fixing combination of string keyframes, spring and
Fixed
- Handle
%translate values in layout animations.
- Handle
Fixed
- Ensure final WAAPI styles are always committed synchronously to prevent flash of incorrect styles in Firefox.
- Prevent Next.js from caching
typeof windowchecks. - Improve projection node cleanup.
- Variant propagation fixed for asynchronously-mounted children.
Fixed
- Ensure
onCompletefires at the end of an animation sequence.
- Ensure
Fixed
- Ensure
velocityis never transferred to a time-derived spring.
- Ensure
Fixed
- Layout animations: Reset motion value velocity when starting a new layout animation.
Fixed
useScroll: Ensure animations aren't hardware accelerated whentargetis set.- Improve animatable
"none"generation for mask values.
Fixed
- Improve detection of detached elements with vanilla layout animations.
Fixed
AnimatePresence: Ensure exiting nodes are correctly removed when rapidly switching children.
Fixed
<motion />: Ensure animation state is reset after being re-suspended.- Prevent stale values when mixing
transitionEndandtransition.type: false. - Drag: Fix "sticky" throw velocity on initial interaciton.
- Drag: Ensure catching a thrown element kills its velocity.
Fixed
onHoverStartandonHoverEndfirst argument now correctly typed asPointerEvent.whileHover: No longer persists after drag end.AnimatePresence: Allow changingmodeprop.
Added
- Drag constraints updated even when draggable or constraints resize outside of React renders.
Fixed
- Allow drag to be initiated by child
aandbuttonelements.
- Allow drag to be initiated by child
Fixed
Reorder: Fixed viewport autoscroll.
Fixed
- Updates to layout animations.
Fixed
useAnimate: Now respects reduced motion settings set viaMotionConfig.
Added
- Add default value type
pxforfontSize.
Fixed
- Removed default value type from
radius. - Ensure
LazyMotionanimates initial state even when state has changed before Motion is loaded.
- Add default value type
Fixed
- Ensure
scale: "0%"isn't treated as default value.
- Ensure
Fixed
- Ensure pen gesture is correctly cleaned up on drag cancel.
- Fix edge case where
DocumentProjectionNode's attached element wasnull.
Added
AnimatePresence:anchorYfor vertically positioning popped children.
Fixed
- Fixed path drawing animations in zoomed Safari contexts by switching to unitless values.
Fixed
- Ensure drag gestures trigger from keyboard-accessible elements (
button,textareaetc) if these elements havedragapplied directly.
- Ensure drag gestures trigger from keyboard-accessible elements (
Fixed
- Adding sourcemaps to
motion-domandmotion-utils. - Fix
Reorderautoscroll within scrollable pages. - Gracefully handle missing elements in animation sequences.
- Adding sourcemaps to
Fixed
- Improving projection node cleanup.
Fixed
- Internal refactor of projection system into
motion-dom.
- Internal refactor of projection system into
Fixed
- Improve overload selection for
useTransform.
- Improve overload selection for
Fixed
- Draggable elements now track pointer during page and element scroll.
Fixed
- Fixed time sampling of GPU animations under heavy CPU load.
Fixed
- Fixing missing import from
motion-dom.
- Fixing missing import from
Fixed
- Fixing Radix
DialogwithAnimatePresence. - Ensure drag constraints animation resumes after press interruption.
- Prevent drag gesture from triggering when pressing focusable elements.
- Fixing Radix