-
Notifications
You must be signed in to change notification settings - Fork 80
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
incompatibility with styled-components #31
Comments
Same for me. Tried with the latest version of styled-components and react-anime. |
Same for me! Doesn't work with SC! :( |
Doesn't work because |
Oh thats a sad solution! |
Yes. But at least it works. I hope this will be fixed soon. |
@AaronPorts but this way you don't have an access to the styled component's css, right? You can change its wrapper only (which is P.S. I deleted my previous answer due to I thought it's another repository. But my solution is to use original Anime.js and use it this way:
and then:
|
Something like that.
But of course I can't give any guarantees that nothing will break :D |
Hmm, this is probably because If anything, send me a CodePen and I'll take a look. |
did you get an example? https://codesandbox.io/s/rrrj957znp |
The following TypeScript code, that uses styled-components only animates the first 4 divs (those with a style object). The other four (styled components) do not animate. Animation using the animejs library in componentdidmount with a css selector on the styled components does work. But I would prefer to use your wrapper library.
The text was updated successfully, but these errors were encountered: