-
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
SVG Morphing not working #27
Comments
Yeah messing around with the Would you mind sending a CodePen our way? |
@8ctopotamus I got something similar to this working:
Your |
@ryandunnewold That didn't work for me. Can you post a full/barebones example? :\ Here's what I tried: https://codepen.io/corysimmons/pen/LeGaNy?editors=0010 Also, it'd be nice to pull the |
It would be nice to see a full/barebones example on codepen or something. I can't seem to get it working either. |
I'll work on putting it into a Codepen example |
I am having issues with triggering React-Anime animations via state change. I am conditionally rendering naked elements in their initial state -> the element with an wrapper when it is time to animate. However, when going back to the initial state, the transition back is very rough, probably because I am removing the entire Anime wrapper and re-rendering the original element, so it jumps in. Working Example: https://codesandbox.io/embed/6lxoq1vz5r I am having issues when I try to manually modulate the |
Is there any update on this? I am having a similar problem. I can get the animation to run, but if the parent component's state changes, the Anime component disappears and I then get the error |
Update: This was fixed when adding a unique key to my Anime element: When trying this I can see the SVG path is in fact morphing but it adds a div tag around the path and messes up the SVG and creates invalid html. Is there any way to prevent the path from being wrapped inside a div tag by anime? |
I thought it would be cool to use react-anime to create something like this: https://tympanus.net/Development/ShapeMorphIdeas/index3.html
I tried to morph the paths by wrapping each one in and added the "d" attribute for each one respectively, but nothing happens. Any suggestions would be greatly appreciated!
Here's my code:
js
css
The text was updated successfully, but these errors were encountered: