Open sbtly opened 4 years ago
I wish! But when using react-router, as soon the url changes, the previous component unmounts and the new one takes its place. So no 🤷♂️.
In that case, 'AnimatePresence' component from framer-motion
can be used with react-router!
It prevents component from unmount until transition is finished.
https://codesandbox.io/embed/react-pose-route-transitions-with-reach-router-76mf0
I'm not pushing you or anything, I just hope this library also support this feature. It would be so awesome.
Cool! I'll check it out.
Is there a way to do ‘exit A comp while entering B comp’ instead of ‘exit A comp before entering B comp’?
It seems that right now, it only supports showing one component at a time. It would be really useful if exiting component and entering component visible at the same time.
For example, framer-motion has ‘AnimatePresence’ component that does this.