Bump motion from 12.40.0 to 12.42.0 in /docs
Merged
DE
3mo ago+14+14+01234567890123456789-14-14-01234567890123456789
Bumps motion from 12.40.0 to 12.42.0.
Changelog
Sourced from motion's changelog.
[12.42.0] 2026-06-24
Changed
animateView: Layers are automatically grouped to match their DOM-hierarchy. New.group(false)method opts-out.Fixed
animateView: Auto-crop is now aspect-ratio aware, disabling crops for matching aspect-ratios.animateView: Disabled automaticborder-radiusanimation.[12.41.0] 2026-06-23
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.- Fixing Next.js OOM on Windows when importing via
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.
Commits
9c84145v12.42.060d7c72Add view-transition group nesting and aspect-aware cropping6437276Updatingf0f893ev12.41.0c0c53cbUpdating changelog18c3e3eRemoving plans378fc4cMerge pull request #3761 from motiondivision/worktree-view-target94ea505Merge branch 'main' into worktree-view-targetde65f6bFade auto morph crossfades over the spring's visual durationf8af239Let an explicit duration override the inherited spring on a view layer- 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 from 12.40.0 to 12.42.0 in docs to adopt the latest animateView features and fixes. This brings automatic layer grouping, aspect-aware cropping, and other stability improvements.