Skip to content

chore(deps): update dependency framer-motion to v12.38.0#3333

Merged
gabrielmfern merged 2 commits intocanaryfrom
renovate/framer-motion-12.x
Apr 17, 2026
Merged

chore(deps): update dependency framer-motion to v12.38.0#3333
gabrielmfern merged 2 commits intocanaryfrom
renovate/framer-motion-12.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Apr 16, 2026

This PR contains the following updates:

Package Change Age Confidence
framer-motion 12.23.2212.38.0 age confidence

Release Notes

motiondivision/motion (framer-motion)

v12.38.0

Compare Source

Added
  • Added layoutAnchor prop to configure custom anchor point for resolving relative projection boxes.
Fixed
  • Reorder: Fix axis switching after window resize.
  • Reorder: Fix with virtualised lists.
  • AnimatePresence: Ensure children are removed when exit animation matches current values.

v12.37.0

Compare Source

Added
  • Support for hardware accelerating "start" and "end" offsets in scroll and useScroll.
  • Support for oklch, oklab, lab, lch, color, color-mix, light-dark color types.
Fixed
  • Fix whileInView with client-side navigation.
  • Fix draggable elements when layout updates due to surrounding element re-renders.
  • Improved memory pressure of layout animations.
  • Ensure motion value returned from useSpring reports correct isAnimating().

v12.36.0

Compare Source

Added
  • Allow dragSnapToOrigin to accept "x" or "y" for per-axis snapping.
  • Added axis-locked layout animations with layout="x" and layout="y".
  • Added skipInitialAnimation to useSpring.
Fixed
  • Fixed height and width: auto animations with box-sizing: border-box.
  • Reset component values when exit animation finishes.
  • Ensure anticipate easing returns 1 at p === 1.
  • Fix @emotion/is-prop-valid resolve error in Storybook.
  • Remove data-pop-layout-id from exiting elements when animation interrupted.
  • Ensure we skip WAAPI for non-animatable keyframes.
  • Ensure we skip WAAPI for SVG transforms.
  • Ensure MotionValue props are not passed to SVG.
  • AnimatePresence: Prevent mode="wait" elements from getting stuck when switched rapidly.

v12.35.2

Compare Source

Fixed
  • Reduced filesize of styleEffect.
  • Fix rounding from popLayout.
  • opacity animations in React Strict Mode in development.
  • Ensure useSpring is 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: false with WAAPI animations.
  • Fix layout jump in React Strict Mode in development.
  • Detect divide-by-zero in CSS calc() values before making animatable templates.

v12.35.1

Compare Source

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 = 0 on a finished animation sets the playhead in a paused state.

v12.35.0

Compare Source

Added
  • ViewTimeline support for scroll and useScroll.

v12.34.5

Compare Source

Fixed
  • Ensure final WAAPI styles are always committed synchronously to prevent flash of incorrect styles in Firefox.
  • Prevent Next.js from caching typeof window checks.
  • Improve projection node cleanup.
  • Variant propagation fixed for asynchronously-mounted children.

v12.34.4

Compare Source

Fixed
  • Ensure onComplete fires at the end of an animation sequence.

v12.34.3

Compare Source

Fixed
  • Ensure velocity is never transferred to a time-derived spring.

v12.34.2

Compare Source

Fixed
  • Layout animations: Reset motion value velocity when starting a new layout animation.

v12.34.1

Compare Source

Fixed
  • useScroll: Ensure animations aren't hardware accelerated when target is set.
  • Improve animatable "none" generation for mask values.

v12.34.0

Compare Source

Fixed
  • useScroll: Hardware accelerated animations.

v12.33.2

Compare Source

Fixed
  • Improve detection of detached elements with vanilla layout animations.

v12.33.0

Compare Source

Added
  • <motion />: New propagate.tap prop prevents tap gestures from propagating to parents.

v12.32.0

Compare Source

Added
  • transition.inherit: When true, inherit transition values from less-specific transitions.

v12.31.3

Compare Source

Fixed
  • <motion />: Ensure animation state is reset after being re-suspended.
  • Prevent stale values when mixing transitionEnd and transition.type: false.
  • Drag: Fix "sticky" throw velocity on initial interaciton.
  • Drag: Ensure catching a thrown element kills its velocity.

v12.31.2

Compare Source

Fixed
  • onHoverStart and onHoverEnd first argument now correctly typed as PointerEvent.
  • whileHover: No longer persists after drag end.
  • AnimatePresence: Allow changing mode prop.

v12.31.1

Compare Source

Added
  • Drag constraints updated even when draggable or constraints resize outside of React renders.

v12.31.0

Compare Source

Added
  • animate: Support for bi-directional callbacks within animation sequences.
Fixed
  • Ensure onPan never fires before onPanStart.

v12.30.1

Compare Source

Fixed
  • Allow drag to be initiated by child a and button elements.

v12.30.0

Compare Source

Added
  • MotionConfig: Add skipAnimations option.
Fixed
  • animate: Prevent error when calling stop() on removed elements.
  • animateLayout: Fixing shared element animations when animate called before animateLayout.

v12.29.3

Compare Source

Fixed
  • Reorder: Fixed viewport autoscroll.

v12.29.2

Compare Source

Fixed
  • Updates to layout animations.

v12.29.0

Compare Source

Added
  • transformViewBoxPoint: Scale drag gestures within <svg> elements where viewBox and rendered width/height are mismatched.
  • trackContentSize: New scroll and useScroll option for tracking changes to content size.
Fixed
  • Add React 19 test suite to CI.
  • Fix types with motion.create().
  • Shared element animations now respect layoutDependency.

v12.28.2

Compare Source

Added
  • Add default value type px for fontSize.
Fixed
  • Removed default value type from radius.
  • Ensure LazyMotion animates initial state even when state has changed before Motion is loaded.

v12.28.1

Compare Source

Fixed
  • Ensure scale: "0%" isn't treated as default value.

v12.27.5

Compare Source

Fixed
  • Ensure pen gesture is correctly cleaned up on drag cancel.
  • Fix edge case where DocumentProjectionNode's attached element was null.

v12.27.4

Compare Source

Added
  • AnimatePresence: anchorY for vertically positioning popped children.
Fixed
  • Fixed path drawing animations in zoomed Safari contexts by switching to unitless values.

v12.27.3

Compare Source

Fixed
  • Ensure drag gestures trigger from keyboard-accessible elements (button, textarea etc) if these elements have drag applied directly.

v12.27.2

Compare Source

Fixed
  • Adding sourcemaps to motion-dom and motion-utils.
  • Fix Reorder autoscroll within scrollable pages.
  • Gracefully handle missing elements in animation sequences.

v12.27.1

Compare Source

Fixed
  • Improving projection node cleanup.

v12.27.0

Compare Source

Fixed
  • Adding new exports for internal use.

v12.26.2

Compare Source

Fixed
  • Internal refactor of projection system into motion-dom.

v12.26.1

Compare Source

Fixed
  • Improve overload selection for useTransform.

v12.26.0

Compare Source

Added
  • Support for multiple output value maps with useTransform.

v12.25.0

Compare Source

Added
  • Support for auto-scrolling when a Reorder.Item reaches the edges of its parent scrollable container.

v12.24.12

Compare Source

Fixed
  • Draggable elements now track pointer during page and element scroll.

v12.24.11

Compare Source

Fixed
  • Fixed time sampling of GPU animations under heavy CPU load.

v12.24.10

Compare Source

v12.24.9

Compare Source

Fixed
  • Fixing Radix Dialog with AnimatePresence.
  • Ensure drag constraints animation resumes after press interruption.
  • Prevent drag gesture from triggering when pressing focusable elements.

v12.24.8

Compare Source

Fixed
  • Perform unit conversion when animating to/from calc() values.

v12.24.7

Compare Source

Fixed
  • Fix duplicate exit animations in AnimatePresence.

v12.24.6

Compare Source

Fixed
  • Remove memory leak from retained matchMedia callbacks.

v12.24.5

Compare Source

Fixed
  • Prevent ref access error for AnimatePresence popLayout mode in React 19.

v12.24.4

Compare Source

Fixed
  • Support ref functions that return a cleanup callback.

v12.24.3

Compare Source

Fixed
  • Ensure onAnimationStart and onAnimationComplete callbacks fire for useSpring.

v12.24.2

Compare Source

Fixed
  • Ensure useDragControls snapToCursor: true` works with initial transforms.

v12.24.1

Compare Source

Fixed
  • Ensure CSS Motion Path properties are applied via style on SVG elements.
  • Ensure JSX is correctly imported by Reorder.Item.

v12.24.0

Compare Source

Added
  • { type: "svg" } option to motion.create() for creating custom SVG components.
  • px default value type for CSS logical properties (paddingBlock, paddingInline, marginBlock, marginInline).
Fixed
  • Ensure drag gesture updates with latest props every render.
  • Fix missing JSX import error.
  • Fix motion-dom build.
  • Exclude src from distributed package.

v12.23.28

Compare Source

Fixed
  • Fixing MotionStyle type with React 19 when skipLibCheck is false.
  • Add guard for process check for better compat with ESM environments.

v12.23.27

Compare Source

Fixed
  • Improved Intellisense detection for motion import.
  • Adding sourcemaps to release.

v12.23.26

Compare Source

Fixed
  • Moved initialisation of default scale correctors to allow for overwriting existing correctors.

v12.23.25

Compare Source

Fixed
  • Ensure relative projection boxes are re-measured when parent layout changes.

v12.23.24

Compare Source

Fixed
  • Ensure that when a component remounts, it continues to fire animations even when initial={false}.

v12.23.23

Compare Source

Added
  • Exporting PresenceChild and PopChild type for internal use.

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Never, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.


Summary by cubic

Upgrade framer-motion to 12.38.0 to deliver new layout and scroll capabilities plus many fixes, improving animation stability and performance.

  • Dependencies
    • Bumped framer-motion from 12.23.22 to 12.38.0 in the workspace catalog; updated lockfile. Transitive updates: motion-dom to 12.38.0 and motion-utils to 12.36.0.
    • Notable changes: layoutAnchor prop, axis-locked layout animations (layout="x"|"y"), ViewTimeline support, hardware-accelerated scroll offsets; fixes for AnimatePresence child removal and Reorder behavior.

Written for commit c783d4d. Summary will update on new commits.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-email Ready Ready Preview, Comment Apr 17, 2026 3:07pm
react-email-demo Ready Ready Preview, Comment Apr 17, 2026 3:07pm

Request Review

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 16, 2026

⚠️ No Changeset found

Latest commit: c783d4d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

@gabrielmfern gabrielmfern force-pushed the renovate/framer-motion-12.x branch from e6ebb91 to efc4849 Compare April 17, 2026 15:04
@gabrielmfern gabrielmfern merged commit afa5c56 into canary Apr 17, 2026
15 of 16 checks passed
@gabrielmfern gabrielmfern deleted the renovate/framer-motion-12.x branch April 17, 2026 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant