Page Transitions
Explore different page transition animations - all SSR compatible
✨ Available Transitions
Click on any transition below to see it in action. All transitions are:
- ✅ SSR Compatible - Works with server-side rendering
- ✅ Hardware Accelerated - Uses GPU for smooth animations
- ✅ Accessible - Respects prefers-reduced-motion
- ✅ Type Safe - Full TypeScript support
📖 How to Use
Method 1: Using definePageMeta (Recommended)
definePageMeta({
pageTransition: { name: 'elegant', mode: 'out-in' } // or any transition name
})Method 2: Using the Composable
const { navigateWithTransition } = usePageTransitions()
// Navigate with specific transition
await navigateWithTransition('/about', 'zoom')Method 3: Custom Transition in nuxt.config
export default defineNuxtConfig({
app: {
pageTransition: { name: 'elegant', mode: 'out-in' }
}
})