←back to thread

AnimeJs v4 Is Here

(animejs.com)
973 points adrianvoica | 1 comments | | HN request time: 0.208s | source
Show context
maelito ◴[] No.43574094[source]
How does it compare to Motion ?
replies(1): >>43574414 #
dkersten ◴[] No.43574414[source]
That's what I came here to ask too. This looks wonderful, but I'm already using Motion quite a bit. I'm also using React and am unsure how well Anime.js pairs with that while Motion has a first party react library.

In any case, like everyone else here, I'm very impressed with OP's site and documentation. Very slick!

replies(1): >>43574788 #
xico ◴[] No.43574788[source]
The first page in the documentation, Getting Started, gives a React sample: https://animejs.com/documentation/getting-started/using-with...
replies(1): >>43576234 #
1. dkersten ◴[] No.43576234[source]
Ah, I looked at the examples but I guess I missed this. Thanks!

So it basically works outside of react land — you can animate your component but it’s applied after react renders it. It’s nice to see an example and that it works, but I suppose it does mean there are certain things it’s unable to do, such as animating on component removal (Motion does this by adding a wrapper component that detects when its children are removed, I suppose it’s not something you can achieve without special react specific support)