Library/PageTransition

PageTransition

Framer Motion wrapper that adds a smooth fade-slide animation to any page or section.

Simple Build
Interactive Preview
Initialising Operative...

Architecture

Component Architecture
PageTransition/

Prop Usage

PropTypeDefaultDescription
childrenrequired
React.ReactNodeContent to animate in.
className
stringAdditional classes applied to the motion wrapper.

Usage

import { PageTransition } from '@/ui'; // Wrap any page or section export default function AboutPage() { return ( <PageTransition> <h1>About Us</h1> <p>Content fades in smoothly on mount.</p> </PageTransition> ); }