Closed as not planned
Description
Vue version
3.3.4
Link to minimal reproduction
Steps to reproduce
- Click the button
What is expected?
No jumps in the transition animation
What is actually happening?
Jump at the very start, because CSS scale is not being taken into account, so the distances are off by a factor of .
System Info
No response
Any additional comments?
See also #6387.
Should probably be tested with and without scale()
on the child elements too.
This SO post indicates that element.getBoundingClientRect().width / element.offsetWidth
should be enough to figure out the scale:
https://stackoverflow.com/questions/5603615/how-to-get-the-scale-value-of-an-html-element-using-javascript-or-jquery
However, getBoundingClientRect
may be expensive - although it should only need to be called when the transitions start, but if it is too expensive then a way to opt-in would be fine too