A
A
antpv2018-08-18 16:24:32
Layout
antpv, 2018-08-18 16:24:32

How to organize smooth replacement of components in Raact?

Let's say I have a menu, depending on the selected menu, the corresponding component is displayed.
How can I organize a smooth replacement of components?
The first thing that came to mind was to wrap the necessary components in components that animate the smooth appearance. But then what to do with the disappearance?
For example, I want that when choosing another menu, the current one smoothly goes to the side + transparency, and the next one, respectively, smoothly comes from the other side + opacity. I would like a theory, but I will also be grateful for a clear example.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Spirin, 2018-08-18
@antpv

There is an example in the official guide .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question