You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prior to version 5.0.0, animation keyframes would accept non-pixel values. After installing version 5.0.0, non-pixel will always throw "Keyframes must be of the same dimension as the current value" when used inside an array of keyframes.
Eg.
animate={{ width: ["0px", "100px"] }} works, but animate={{ width: ["0%", "100%"] }} does not.
I could not locate any documentation suggesting this behavior was intentionally deprecated.
3. IMPORTANT: Provide a CodeSandbox reproduction of the bug
The example has a "Working Version" component and a "Broken Version" component.
The dependency version can also be rolled back to pre-5.0.0 in CodeSandbox to show the "Broken Version" working.
4. Steps to reproduce
In a React project, install version 4.1.17 of framer-motion
Define a motion.div that animates its width, using <motion.div style={{ /* some styles that'll display the div */ }} animate={{ width: ["0%", "100%"] }}
Confirm that application does not crash when attempting to render the motion.div instance
Install framer-motion version 5.0.0
Reload the application (including any necessary rebuilding), without making any other changes
Confirm that the application crashes when attempting to render the motion.div instance
5. Expected behavior
motion components accept non-pixel based keyframes as they have in the past.
6. Video or screenshots
N/A
7. Environment details
OS: MacOS Big Sur (11.6)
Browser: Chrome 95.0.4638.54
The text was updated successfully, but these errors were encountered:
1. Read the FAQs 馃憞
2. Describe the bug
Prior to version 5.0.0, animation keyframes would accept non-pixel values. After installing version 5.0.0, non-pixel will always throw "Keyframes must be of the same dimension as the current value" when used inside an array of keyframes.
Eg.
animate={{ width: ["0px", "100px"] }}
works, butanimate={{ width: ["0%", "100%"] }}
does not.I could not locate any documentation suggesting this behavior was intentionally deprecated.
3. IMPORTANT: Provide a CodeSandbox reproduction of the bug
CodeSandbox Example
The example has a "Working Version" component and a "Broken Version" component.
The dependency version can also be rolled back to pre-5.0.0 in CodeSandbox to show the "Broken Version" working.
4. Steps to reproduce
framer-motion
motion.div
that animates its width, using<motion.div style={{ /* some styles that'll display the div */ }} animate={{ width: ["0%", "100%"] }}
motion.div
instanceframer-motion
version 5.0.0motion.div
instance5. Expected behavior
motion
components accept non-pixel based keyframes as they have in the past.6. Video or screenshots
N/A
7. Environment details
OS: MacOS Big Sur (11.6)
Browser: Chrome 95.0.4638.54
The text was updated successfully, but these errors were encountered: