score:1

Accepted answer

if you don't want to use a beta feature, you could just put a delay on the exit variant.

also, might want to position the slide absolute.

https://codesandbox.io/s/infallible-ganguly-38mmc

score:1

using the new beta exitbeforeenter prop did the trick:

<animatepresence exitbeforeenter>
  ...
</animatepresence>

Related Query

More Query from same tag