On route transition you want to animate morphing
unrelated components between before transition components and after transition components. You will not be able to do this in functional manner.
You will not be able to do this with CSS animations. Example of how this is done with Ember liquid fire. https://www.youtube.com/watch?v=vq_BcIFM8Rc
The Animated library (originally from React Native) gives you some pretty basic but powerful primitives to build whatever animation you need.