Open dominictwlee opened 4 years ago
@InventingWithMonster Hi, just wanted to follow up on this to see whether this is intended behaviour, or whether it's a bug? I think it has to do with the transform-origin not updating according to any state changes to cx.
thanks!
Yeah this is a bug although I'm not sure when it'll get looked at
2. Describe the bug When animating the scale property of a circle element, I expect it to scale up and down at the element's last position. However, it seems if you set the cx/cy position of the element dynamically after the initial animation, the exit animation will shift itself back to the previous position rather than respect any changes made to cx/cy.
3. IMPORTANT: Provide a CodeSandbox reproduction of the bug https://codesandbox.io/s/framer-motion-playground-yqqjy?file=/src/index.tsx
4. Steps to reproduce
Steps to reproduce the behavior:
5. Expected behavior I expect the scaling from 1 to 0 to happen at the last position after cx was changed dynamically.
6. Video or screenshots![Peek 2020-07-07 22-20](https://user-images.githubusercontent.com/34794189/86844560-24079b00-c0a0-11ea-8d57-2ba3990d8247.gif)
7. Environment details Browser: Firefox 78.0.1 OS: Pop!_OS 20.04