framer / motion

Open source, production-ready animation and gesture library for React
https://framer.com/motion
MIT License
23.2k stars 773 forks source link

[BUG] Upgrade the examples to use latest package version #2676

Open RichardHpa opened 3 months ago

RichardHpa commented 3 months ago

framer-motion is currently at version 11.2.4

Most of the examples in the docs are still using 6.5.1 or earlier. The notification example is still using 1.1.0.

Because of the major upgrades, some of the configs are no longer applicable and dont behave the same way. Could you please update your examples to be using the latest version as well as the latest configurations

For example, the notification example https://codesandbox.io/p/sandbox/framer-motion-notifications-5cvo9. Adding and removing a notification gives you the correct enter and exit animations and behaves exactly how someone probably wants to use it. but if you were to upgrade that to 6.5.1 (so not even the latest version) then those animations dont work as expected anymore.

Since most people will just be installing the latest version of the package and then looking at these examples annoyingly wont give them the same result

malmz commented 1 month ago

Using the image gallery example i noticed a regression when upgrading to 11.3.0. When swiping back and forward quickly it sometimes runs the enter animation twice, once normally and once again after maybe half a second.