Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upincompatibility 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 |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

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.