Go Pro Sign Up Login
0 days 0 hrs 0 min 0 sec

Summer Sale

50% off Level Up Pro until you unsubscribe.
Get access to ALL 128 courses on Level Up Tutorials

This is your last chance to get Level Up Pro for $145/year.

or Learn More
Moon Moon

Buy Now and unlock this series

$

49

.99

$

24

.99

yours forever

Become a Pro and unlock everything

$

24

.99

per month

Example 4: Modal Transition

Downloads

Become a pro to download code and videos

Comments

Mahmoud Badreddine

about 2 years ago

Has anyone tried incorporating the useTransition with the ToggleRPC and the Modal. It works well for me on enter, but doesn't animate on Leave.

Filipe Estacio

about 3 years ago

If I got it correctly from the previous videos, you would reach out for useTransition when you want to mount and unmount components. I guess that you could have achieved the same animation with useSpring, but the component would have stayed mounted in the DOM, but hidden.

Pol

about 3 years ago

So far it is not clear to me what is the difference between useSpring and useTransition... When to use one or another? Because I reckon in this example you could have used a spring as well. Cheers, great course!

Want to join the conversation?

Become a Pro member today!