6

I am trying to use a SwitchTransition component. Unfortunately, the code in the docs is not a complete example and I'm having trouble filling in the blanks. Does anyone have a simple example of this component being used, such as a CSS fade-out then fade-in?

I can't find any examples online. Does this mean that there is another common approach that I'm overlooking? Thanks!

KemanoThief
  • 617
  • 8
  • 23

1 Answers1

9

I've made a simple example here that uses SwitchTransition to transition the text being displayed.

The react-transition-group docs link to vue transition modes which give some insight into how the switch transition works.

tony19
  • 125,647
  • 18
  • 229
  • 307
lumpofiron
  • 154
  • 1
  • 8