Skip to content

Commit 0e87c7c

Browse files
committed
fix: variants transition when: beforeChildren does not work
1 parent 3f1e085 commit 0e87c7c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/motion/src/features/animation/animation.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ export class AnimationFeature extends Feature {
6565
const prevTarget = this.state.target
6666
this.state.target = { ...this.state.baseTarget }
6767
let animationOptions: $Transition = {}
68-
const transition = { ...this.state.options.transition }
6968

7069
animationOptions = this.resolveStateAnimation({
7170
controlActiveState,
@@ -79,7 +78,7 @@ export class AnimationFeature extends Feature {
7978
factories,
8079
getChildAnimations,
8180
childAnimations,
82-
transition,
81+
transition: animationOptions,
8382
controlActiveState,
8483
isExit,
8584
})

0 commit comments

Comments
 (0)