motiondivision / motion

A modern animation library for React and JavaScript
https://motion.dev
MIT License
25.66k stars 842 forks source link

[BUG] Animate transform with variants with values [0, any number or numbers, 0] #2855

Open alexeukylik opened 2 weeks ago

alexeukylik commented 2 weeks ago

1. Read the FAQs 👇

Yep

2. Describe the bug

When I try to animate rotate or rotateY or rotateX with coordinate [0, ..., 0](zero to some number(s) to zero) with variants - animation running only one time. start with 10.17.4 version

3. IMPORTANT: Provide a CodeSandbox reproduction of the bug

https://codesandbox.io/p/sandbox/framer-motion-keyframes-forked-l7tw29

4. Steps to reproduce

just reload page and click on the box a couple of times