-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Closed as duplicate of#6105
Closed as duplicate of#6105
Copy link
Description
Vue version
3.5.22
Link to minimal reproduction
Steps to reproduce
- just click box
What is expected?
- should not trigger move behavior of
TransitionGroup
What is actually happening?
- box jumps to an incorrect position, then the transition animation starts, gradually moving to the expected position.
System Info
Any additional comments?
In Vue’s <transition-group>
, element movements are detected by comparing their positions using each element’s DOMRect
. When a move is triggered, at time 0s, the element is temporarily translated to its previous position using the transform: translate(...)
property, and then a transition animation begins.
However, if an element already has a transform
property that includes scaling (e.g. scale(...)), the computed DOMRect positions will be offset—unless the element’s transform-origin
is set to left top
.
Metadata
Metadata
Assignees
Labels
No labels