chenglou / react-motion

A spring that solves your animation problems.
MIT License
21.68k stars 1.16k forks source link

Transition between components / usage with react router. #370

Open sontek opened 8 years ago

sontek commented 8 years ago

Hey, I'm trying to basically do something like this:

http://jacobp100.github.io/state-transitions/pokemon.html

which is using the state-transitions library. I'm trying to achieve this by using react-motion instead but it doesn't seem to have a easy way to do it?

I basically have two URLs:

and when the user clicks on an item in the list I want to ease in the details view. How would you structure that?

tylerhellner commented 8 years ago

If you are using React-Router v4, they have an example in their docs.

https://react-router.now.sh/animated-transitions

eko24ive commented 7 years ago

Hey @sontek, was you able to solve your problem ?

sontek commented 7 years ago

I'm still not on react v4, it changed a lot and we didn't actually agree with the changes. For now we've just punted on the transitions but we'll be trying again at some point

eko24ive commented 7 years ago

Ok, many thanks for the update !