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

page

Default fade transition

fade-scale

Fade with subtle scale

slide-right

Slide from right to left

slide-left

Slide from left to right

slide-up

Slide from bottom to top

zoom

Zoom in/out effect

blur

Blur transition

rotate

Rotate with fade

bounce

Bouncy entrance

flip

3D flip effect

elegant

Elegant slide fade (recommended)

📖 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' }
  }
})