Bump motion from 12.38.0 to 12.40.0 in /docs
Merged
DE
5mo ago+19+19+01234567890123456789-19-19-01234567890123456789
Bumps motion from 12.38.0 to 12.40.0.
Changelog
Sourced from motion's changelog.
[12.40.0] 2026-05-21
Added
pathoption totransition.arc()for motion along an arc.[12.39.0] 2026-05-18
Added
- Support for
repeatTypeandrepeatDelayin animation sequences.Fixed
- Variants: Re-run keyframe animations when switching between variant labels even when they share identical keyframe arrays.
- Drag: Preserve in-flight motion value animations across React 19 reorder unmount/remount so
dragSnapToOriginno longer leaves the drag transform stranded after a layout swap.LazyMotion: Share React contexts between theframer-motionandframer-motion/m(and thereforemotion/reactandmotion/react-m) CJS bundles so that<m.div>from the/msubpath picks up features loaded by<LazyMotion>from the main entry point.useScroll: Support hydratingtargetandcontainerrefs from anywhere in the tree.- Drag: Gesture no longer starts from incorrect start point when rendered inside
<AnimatePresence initial={false} />.- Drag:
dragConstraints, when set as viewport-relative ref, no longer break on scroll.§- Updated
visualElementhydration order.useAnimate: Now respectsskipAnimations.AnimatePresence: Fix object-forminitialvalues not applied on re-entry after exit completes.scroll: Fixed callback progress when tracking an element.useScroll: Fix hardware acceleration when tracking an element.
Commits
38ebb94v12.40.0b1f766cLatestbca5544Merge pull request #3699 from motiondivision/lochie/arcs-injectablef1a96cfarc(): rename amp/rotate, expose MotionPath, fix explicit cw/ccwb4aaba0pathRotation: non-destructive orientToPath rotation channel8604ef3Make arcs injectable viatransition.path = arc()f90fe29addorientToPath9ebe999fix: testbc2107eRevert "no should"6eeb92dno should- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Summary by cubic
Upgrade motion in the docs app from 12.38.0 to 12.40.0 to unlock motion path animations and pick up stability fixes. Adds transition.path/arc() and improves drag, scroll, and variant behavior in our docs animations.
- Dependencies
motion→ 12.40.0- Transitive:
framer-motion→ 12.40.0,motion-dom→ 12.40.0,motion-utils→ 12.39.0