Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Layout animations don't work with MotionValue #2907

Open
MrFlashAccount opened this issue Nov 25, 2024 · 0 comments
Open

[BUG] Layout animations don't work with MotionValue #2907

MrFlashAccount opened this issue Nov 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@MrFlashAccount
Copy link

MrFlashAccount commented Nov 25, 2024

1. Read the FAQs 👇

2. Describe the bug

Layout animations do not work with MotionValue?

https://codesandbox.io/p/sandbox/3qxj8n?file=/src/App.tsx:28,1

4. Steps to reproduce

Steps to reproduce the behavior:

  1. Open Sandbox by following the link above.
  2. See that the element resizes without transition.
  3. use motionValue constant to switch between useState and useMotionValue

5. Expected behavior

Element should resize with animation

CleanShot.2024-11-25.at.12.35.24.mp4
@MrFlashAccount MrFlashAccount added the bug Something isn't working label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant