v0.10.0
0.10.0 (2021-04-21)
Features
- add
exitTransition
support & docs! (26a55ac)
See tweet about exitTransition
: https://twitter.com/FernandoTheRojo/status/1384918970877288456?s=20
Options passed to exitTransition
will only apply to the exit
prop, when a component is exiting.
<MotiView
// the animate prop uses the transition
transition={{ type: 'spring' }}
animate={{ opacity: 1, scale: 1 }}
// when exiting, it will use a timing transition
exitTransition={{ type: 'timing' }}
exit={{ opacity: 0, scale: 0.1 }}
/>
By default, exit
uses transition
to configure its animations, so this prop is not required.
However, if you pass exitTransition
, it will override transition
for exit animations.
To see how to use this prop, see the transition
docs.