Current stage: {stage}
Page ready: {isReady ? "Yes" : "No"}
);
}
```
> [!TIP]
> This is useful, for example, if you want to trigger a reveal animation after the page transition ends.
### Cleanup
`TransitionRouter` manages cleanup functions for `leave` and `enter` callbacks, to prevent memory leaks.
Similar to React's `useEffect` hook, you can return a cleanup function to cancel the animation.
#### Minimal example using GSAP
```tsx
"use client";
import { gsap } from "gsap";
import { TransitionRouter } from "next-transition-router";
export function Providers({ children }: { children: React.ReactNode }) {
return (