framer / motion

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

[BUG] App Drawer doc example is using V1 #817

Closed glekner closed 3 years ago

glekner commented 4 years ago

1. Read the FAQs 👇

2. Describe the bug While reading https://www.framer.com/api/motion/examples/ I noticed The App Drawer example is using V 1.6.0 Is the team going to update those docs?

3. IMPORTANT: Provide a CodeSandbox reproduction of the bug https://codesandbox.io/s/app-store-ui-using-react-and-framer-motion-ecgc2

4. Steps to reproduce https://www.framer.com/api/motion/examples/

5. Expected behavior The example should use V2

PTaylour commented 3 years ago

I'm not sure how the the deployment is set up for codesandbox but this one is uses the latest release:

https://codesandbox.io/s/app-store-ui-using-react-and-framer-motion-jnqfv

or using the layout prop

https://www.framer.com/api/motion/animate-shared-layout/#crossfade

glekner commented 3 years ago

nice, well its really not consistent through out the docs, maybe its better to clean up some reference links

mattgperry commented 4 months ago

Updated: https://codesandbox.io/p/sandbox/framer-motion-app-store-demo-su6mx?file=%2Fsrc%2FItem.js