-
-
Notifications
You must be signed in to change notification settings - Fork 1
Component: Transition
TryHardDood edited this page Jan 8, 2021
·
1 revision
The Transition
component lets you add enter/leave transitions to conditionally rendered elements, using CSS classes to control the actual transition styles in the different stages of the transition.
<transition
enter="transition-opacity duration-75"
enterFrom="opacity-0"
enterTo="opacity-100"
leave="transition-opacity duration-150"
leaveFrom="opacity-100"
leaveTo="opacity-0">
<span>I will fade in and out</span>
</transition>