The <Transition> component applies animation effects to a single element or component as it enters or leaves the DOM. It does not render an extra DOM element or appear in the component hierarchy.
By default, transitions are not applied on the initial render. To apply them on mount, set the appear prop to true.
Warning: Using appear with SSR may cause a flash of unstyled content as the initial transition is applied on the client-side. You must handle initial transitions on the server-side manually if using SSR.
import { Transition } from "solid-transition-group"
const [isVisible, setVisible] = createSignal(true)
<Transition name="slide-fade">
<Show when={isVisible()}>
<div>Hello</div>
</Show>
</Transition>
setVisible(false) // triggers exit transition