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] Using CSS variables doesn't trigger animation (version 5.0.2 and above) #1336

Closed
xeho91 opened this issue Nov 5, 2021 · 1 comment · Fixed by #1337
Closed

[BUG] Using CSS variables doesn't trigger animation (version 5.0.2 and above) #1336

xeho91 opened this issue Nov 5, 2021 · 1 comment · Fixed by #1337
Labels
bug Something isn't working

Comments

@xeho91
Copy link

xeho91 commented Nov 5, 2021

I am using CSS variables to get the position x value based on the element's width.
In the version 5.0.1, this was working fine, without any issues.

However, after I upgraded framer-motion to version 5.0.2 and eventually to 5.2.0, I have noticed that the animations suddenly stopped working (they're not triggered at all).

Minimal reproduction Sandbox

https://codesandbox.io/s/brave-rhodes-ld5bs?file=/src/App.js

You can see that this pattern works fine in version 5.0.1, however in more recent versions, it doesn't work.
Is it expected behaviour, or was there any breaking change that I missed?

@xeho91 xeho91 added the bug Something isn't working label Nov 5, 2021
@mattgperry
Copy link
Collaborator

There's nothing jumping out at me in the changelogs, I'll take a look

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

Successfully merging a pull request may close this issue.

2 participants