Update dependency framer-motion to v12#10
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
10cc96a to
798956a
Compare
798956a to
3e785bf
Compare
3e785bf to
90578b6
Compare
90578b6 to
8148577
Compare
8148577 to
211fc03
Compare
211fc03 to
dc6d8bd
Compare
dc6d8bd to
09544cb
Compare
09544cb to
76fb3d0
Compare
76fb3d0 to
24280a9
Compare
24280a9 to
947ddc0
Compare
947ddc0 to
4e61f4d
Compare
4e61f4d to
57f44a0
Compare
57f44a0 to
44eecee
Compare
44eecee to
1315a54
Compare
d530065 to
e0c0c76
Compare
e0c0c76 to
f6005ec
Compare
f6005ec to
15b0daf
Compare
15b0daf to
02a16a1
Compare
02a16a1 to
3e75f6d
Compare
3e75f6d to
3f1919c
Compare
3f1919c to
5104889
Compare
5104889 to
deeb5d2
Compare
deeb5d2 to
882cdaa
Compare
882cdaa to
c5c6da6
Compare
c5c6da6 to
95b9207
Compare
95b9207 to
83d5fa1
Compare
83d5fa1 to
838574c
Compare
838574c to
5299288
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^11.11.17→^12.0.0Release Notes
motiondivision/motion (framer-motion)
v12.41.0Compare Source
Added
animateView: Moves from Motion+ Early Access and alpha to main library.animateView:.add()resolves a CSS selector orElementto automatically generate, apply and removeview-transition-name.animateView:.new()and.old()configures values to animate on new and old layers.animateView:.layout()can set a custom transition on the size/position animation of the currently selected elements.animateView: Group layers now automatically crop with children set tocover, withborder-radiusanimating from old radius to new..crop(false)disables this behaviour.animateView:.class(name)tags currently selected elements with aview-transition-classas a custom CSS hook.Fixed
AnimatePresence: Prevent stuck exit animations when children interrupt.drag: Childe.stopPropagation()no longer break drag end.motionpackage.animateLayout: Improve handling of parallel/interleaved calls.Changed
animateView:.enter()and.exit()now refer specifically tonewandoldlayers where there are no matchingoldornewlayers.animateView: Interrupted transition setups now return resolved animation rather than throwing.v12.40.0Compare Source
Added
pathoption totransition.arc()for motion along an arc.v12.39.0Compare Source
Added
repeatTypeandrepeatDelayin animation sequences.Fixed
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.<AnimatePresence initial={false} />.dragConstraints, when set as viewport-relative ref, no longer break on scroll.§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.v12.38.0Compare Source
Added
layoutAnchorprop 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.0Compare Source
Added
"start"and"end"offsets inscrollanduseScroll.oklch,oklab,lab,lch,color,color-mix,light-darkcolor types.Fixed
whileInViewwith client-side navigation.useSpringreports correctisAnimating().v12.36.0Compare Source
Added
dragSnapToOriginto accept"x"or"y"for per-axis snapping.layout="x"andlayout="y".skipInitialAnimationtouseSpring.Fixed
heightandwidth: autoanimations withbox-sizing: border-box.anticipateeasing returns1atp === 1.@emotion/is-prop-validresolve error in Storybook.data-pop-layout-idfrom exiting elements when animation interrupted.MotionValueprops are not passed to SVG.AnimatePresence: Preventmode="wait"elements from getting stuck when switched rapidly.v12.35.2Compare Source
Fixed
styleEffect.popLayout.opacityanimations in React Strict Mode in development.useSpringis not affected by monitor framerate.%-based translation.autoplay: falsewith WAAPI animations.calc()values before making animatable templates.v12.35.1Compare Source
Fixed
delay.animation.time = 0on a finished animation sets the playhead in a paused state.v12.35.0Compare Source
Added
ViewTimelinesupport forscrollanduseScroll.v12.34.5Compare Source
Fixed
typeof windowchecks.v12.34.4Compare Source
Fixed
onCompletefires at the end of an animation sequence.v12.34.3Compare Source
Fixed
velocityis never transferred to a time-derived spring.v12.34.2Compare Source
Fixed
v12.34.1Compare Source
Fixed
useScroll: Ensure animations aren't hardware accelerated whentargetis set."none"generation for mask values.v12.34.0Compare Source
Added
useScroll: Hardware accelerated animations.v12.33.2Compare Source
Fixed
v12.33.0Compare Source
Added
<motion />: Newpropagate.tapprop prevents tap gestures from propagating to parents.v12.32.0Compare Source
Added
transition.inherit: Whentrue, inherit transition values from less-specific transitions.v12.31.3Compare Source
Fixed
<motion />: Ensure animation state is reset after being re-suspended.transitionEndandtransition.type: false.v12.31.2Compare Source
Fixed
onHoverStartandonHoverEndfirst argument now correctly typed asPointerEvent.whileHover: No longer persists after drag end.AnimatePresence: Allow changingmodeprop.v12.31.1Compare Source
Added
v12.31.0Compare Source
Added
animate: Support for bi-directional callbacks within animation sequences.Fixed
onPannever fires beforeonPanStart.v12.30.1Compare Source
Fixed
aandbuttonelements.v12.30.0Compare Source
Added
MotionConfig: AddskipAnimationsoption.Fixed
animate: Prevent error when callingstop()on removed elements.animateLayout: Fixing shared element animations whenanimatecalled beforeanimateLayout.v12.29.3Compare Source
Fixed
Reorder: Fixed viewport autoscroll.v12.29.2Compare Source
Fixed
v12.29.0Compare Source
Added
transformViewBoxPoint: Scale drag gestures within<svg>elements whereviewBoxand renderedwidth/heightare mismatched.trackContentSize: NewscrollanduseScrolloption for tracking changes to content size.Fixed
motion.create().layoutDependency.v12.28.2Compare Source
Added
pxforfontSize.Fixed
radius.LazyMotionanimates initial state even when state has changed before Motion is loaded.v12.28.1Compare Source
Fixed
scale: "0%"isn't treated as default value.v12.27.5Compare Source
Fixed
DocumentProjectionNode's attached element wasnull.v12.27.4Compare Source
Added
AnimatePresence:anchorYfor vertically positioning popped children.Fixed
v12.27.3Compare Source
Fixed
button,textareaetc) if these elements havedragapplied directly.v12.27.2Compare Source
Fixed
motion-domandmotion-utils.Reorderautoscroll within scrollable pages.v12.27.1Compare Source
Fixed
v12.27.0Compare Source
Added
v12.26.2Compare Source
Fixed
motion-dom.v12.26.1Compare Source
Fixed
useTransform.v12.26.0Compare Source
Added
useTransform.v12.25.0Compare Source
Added
Reorder.Itemreaches the edges of its parent scrollable container.v12.24.12Compare Source
Fixed
v12.24.11Compare Source
Fixed
v12.24.10Compare Source
Fixed
motion-dom.v12.24.9Compare Source
Fixed
DialogwithAnimatePresence.v12.24.8Compare Source
Fixed
calc()values.v12.24.7Compare Source
Fixed
AnimatePresence.v12.24.6Compare Source
Fixed
matchMediacallbacks.v12.24.5Compare Source
Fixed
refaccess error forAnimatePresencepopLayoutmode in React 19.v12.24.4Compare Source
Fixed
reffunctions that return a cleanup callback.v12.24.3Compare Source
Fixed
onAnimationStartandonAnimationCompletecallbacks fire foruseSpring.v12.24.2Compare Source
Fixed
useDragControlssnapToCursor: true` works with initial transforms.v12.24.1Compare Source
Fixed
v12.24.0Compare Source
Added
{ type: "svg" }option tomotion.create()for creating custom SVG components.pxdefault value type for CSS logical properties (paddingBlock,paddingInline,marginBlock,marginInline).Fixed
JSXimport error.motion-dombuild.srcfrom distributed package.v12.23.28Compare Source
Fixed
MotionStyletype with React 19 whenskipLibCheckisfalse.processcheck for better compat with ESM environments.v12.23.27Compare Source
Fixed
motionimport.v12.23.26Compare Source
Fixed
v12.23.25Compare Source
Fixed
v12.23.24Compare Source
Fixed
initial={false}.v12.23.23Compare Source
Added
PresenceChildandPopChildtype for internal use.v12.23.22Compare Source
Added
HTMLElementsanduseComposedRefstype for internal use.v12.23.21Compare Source
Fixed
scrollwith animations that containdelay.v12.23.20Compare Source
Fixed
v12.23.19Compare Source
Fixed
refprop.v12.23.18Compare Source
Fixed
<motion />components now support changingrefprop.v12.23.16Compare Source
Fixed
refwhen passed to a child ofAnimatePresencein"popLayout"mode.v12.23.15Compare Source
Fixed
export *error in RSC.v12.23.14Compare Source
Fixed
Reorder.ItemandReorder.Groupso incorrect HTML props are correctly flagged.externalRefwhen it switches.v12.23.13Compare Source
Fixed
useMotionReffunction now properly includesexternalRefin the dependency array to ensure ref callbacks update when the external ref changes.Changed
v12.23.12Compare Source
Added
v12.23.11Compare Source
Added
delayChildren: stagger()will now be staggered correctly alongside their newly-entering siblings.v12.23.10Compare Source
Fixed
motioncomponents have re-rendered between shared element switching.v12.23.9Compare Source
Changed
renderRequestMotionValuelifecycle.v12.23.7Compare Source
Fixed
springValuecleanup.removeNodefromAnimatePresencewhen usingpopLayout.v12.23.6Compare Source
Changed
motioncomponent creation to remove indirection.v12.23.5Compare Source
Fixed
v12.23.3Compare Source
Changed
useScroll: Re-attempt to initialise scroll animation within auseEffectif refs weren't hydrated during theuseLayoutEffect. Throw if refs are still not hydrated during theuseEffect.v12.23.2Compare Source
Fixed
MotionStyletype with React 19 whenskipLibCheckisfalse.processcheck for better compat with ESM environments.v12.23.1Compare Source
Fixed
refprop.v12.23.0Compare Source
Added
.stop()and.cancel()methods touseDragControls().v12.22.0Compare Source
Added
delayChildrento acceptstagger(). This enablesfromandeaseoptions when staggering variant children.Deprecated
staggerChildrenandstaggerDirectionoptions.v12.20.5Compare Source
Fixed
element.style.v12.20.4Compare Source
Fixed
v12.20.3Compare Source
Fixed
v12.20.2Compare Source
Fixed
Transitiontype to be more permissive.v12.20.1Compare Source
Fixed
Targettype to match previous definition.v12.20.0Compare Source
Added
AnimatePresencerootprop to attach"popLayout"styles to a different root element.v12.19.4Compare Source
Fixed
v12.19.3Compare Source
Fixed
transformPerspectivetoTargetAndTransition.CSSStyleDeclaration.v12.19.2Compare Source
Fixed
v12.19.1Compare Source
Fixed
export *error message in Next.js.v12.19.0Compare Source
Added
usePageInViewfor tracking document visibility.v12.18.2Compare Source
Fixed
"motion".translateX,originXetc values in animation targets.v12.18.1Compare Source
Fixed
"react"import from"motion-dom".v12.18.0Compare Source
Added
<+0.5,<-1)v12.17.3Compare Source
Changed
MotionPropsinto vanillaMotionNodeOptionstype within"motion-dom"package.v12.17.2Compare Source
Changed
"none"keyframes for complex strings.v12.17.1Compare Source
Fixed
isValidPropcheck with Rolldown.v12.17.0Compare Source
Added
Fixed
linear()easing curves.v12.16.0Compare Source
Added
resize().v12.15.0Compare Source
Added
pathLength/pathSpacing/pathOffsetforsvgEffect.dataandariaattributes inattrEffect.attrEffectapplies attributes via JS property where possible.transform-box: fill-boxfor SVGs withtransforminstyleEffect.v12.14.0Compare Source
Added
originX/Y/ZinstyleEffect.Fixed
v12.13.0Compare Source
Added
svgEffect,propEffectandattrEffect.Fixed
v12.12.2Compare Source
Fixed
v12.12.1Compare Source
Fixed
instanceof HTMLElementmade compatible with dynamically generatediframes.v12.12.0Compare Source
Added
springValueFixed
v12.11.4Compare Source
Fixed
transformfrom the DOM for initial independent transforms when there's no active projection.v12.11.3Compare Source
Changed
useWillChangenow only addstransformtowill-changeto prevent issues with prematurely flattenedpreserve-3d.v12.11.2Compare Source
Fixed
__VERSION__placeholder from motion value.Reordercomponent.v12.11.1Compare Source
Fixed
scrolltracking todocument.scrollingElement.v12.11.0Compare Source
Added
value.isEffectActivefor internal use.v12.10.6Compare Source
Fixed
.then()after.stop()and.cancel().v12.10.5Compare Source
Fixed
presshandlers on the same element.v12.10.4Compare Source
Fixed
v12.10.3Compare Source
Fixed
v12.10.2Compare Source
Fixed
.cancel()after.stop().v12.10.1Compare Source
Changed
scrollanimations are now lazy, resolving after"scroll"events instead of every animation frame.v12.10.0Compare Source
Added
styleEffectnow supports:v12.9.7Compare Source
Fixed
PopChildwith Astro view transitions.v12.9.6Compare Source
Fixed
transformBoxviastyle.v12.9.5Compare Source
Fixed
undefinederror in React 19 Strict Mode.v12.9.4Compare Source
Fixed
MotionValue.v12.9.3Compare Source
Fixed
motioncomponents.v12.9.2Compare Source
Fixed
offset.document.bodyand use this instead ofdocument.documentElement.v12.9.1Compare Source
Fixed
.speednow works as expected.v12.9.0Compare Source
Added
styleEffectv12.8.2Compare Source
Changed
transformbehaviour for SVG and CSS switched from element measurements fortransform-box: fill-box.v12.8.0Compare Source
Added
mapValuetransformValueChanged
CustomValueType.v12.7.5Compare Source
Changed
linear()easing.instantAnimationState.currenttoMotionGlobalConfig.instantAnimations.delayfromreadtosetupframeloop step.Fixed
.then()andawaitearly resolution..speedworks correctly across all animation types.v12.7.4Compare Source
Fixed
AnimatePresence.v12.7.3Compare Source
Fixed
durationforanimateViewtransitions..commitStyles()onpseudoElementanimations.v12.7.2Compare Source
Fixed
"sideEffects": falsetomotion-domandmotion-utilspackages.v12.7.1Compare Source
Fixed
.commitStylesonpsuedoElementanimations.v12.7.0Compare Source
Added
layoutCrossfadeallows disabling crossfade of shared layout elements.v12.6.5Compare Source
Fixed
syncandcancelSyncexports.v12.6.4Compare Source
Added
WillChangeMotionValuefor internal Framer use.v12.6.3Compare Source
Changed
animateandanimateViewto share the sameNativeAnimation. Minianimatedown to2.3kb.Fixed
v12.6.2Compare Source
Fixed
transformvalues when amotioncomponent has a definedtransformTemplate.v12.6.1Compare Source
Fixed
v12.6.0Compare Source
Changed
viewtoanimateView.Added
interrupt: "wait"mode asanimateViewdefault.v12.5.0Compare Source
Added
motionValueto vanilla JS entrypoint.Removed
framer-motion-3dpackage.v12.4.13Compare Source
Fixed
v12.4.12Compare Source
Fixed
v12.4.11Compare Source
Fixed
typeoreaseare explicitly set.v12.4.10Compare Source
Fixed
motion-domandmotion-utils.v12.4.9Compare Source
Fixed
Reorder.Itemreordering causinglostpointercaptureevent to fire.v12.4.7Compare Source
Fixed
AnimatePresencenot triggering exit animations when a child withlayoutordragis removed.v12.4.6Compare Source
Fixed
v12.4.5Compare Source
Fixed
onClickhandlers not working insidepressevents.v12.4.4Compare Source
Fixed
iframeembeds.v12.4.3Compare Source
Fixed
v12.4.2Compare Source
Fixed
pressfrom triggering when an element is disabled.v12.4.1Compare Source
Fixed
v12.4.0Compare Source
Added
initialoption touseInView.v12.3.1Compare Source
Fixed
animateanimation.v12.3.0Compare Source
Added
usePresenceDatato get custom data passed toAnimatePresencein descendant components.v12.2.0Compare Source
Added
useSpring.v12.1.0Compare Source
Fixed
AnimatePresencein React 19 strict mode.Deprecated
v12.0.11Compare Source
Fixed
updateSVGDimensionsto its own file to help with tree-shaking.v12.0.10Compare Source
Fixed
MotionValuetomotioncomponent frommotion/react-cliententrypoint.v12.0.9Compare Source
Fixed
v12.0.8Compare Source
Fixed
childrenprop formotion.create.v12.0.6Compare Source
Fixed
v12.0.5Compare Source
Fixed
v12.0.4Compare Source
Fixed
v12.0.3Compare Source
Fixed
Added
anchorXprop toAnimatePresence.Changed
useSpringfor smaller bundlesize.v12.0.1Compare Source
Fixed
Configuration
📅 Schedule: (in timezone Asia/Jerusalem)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.