Page Transition Library
Curated CSS transitions and animations to bring your interface to life with smooth, purposeful motion.
Basic Transitions
13 transitionsSmooth opacity transition. Great for modal appearances, loading states, and subtle reveals.
Element slides in from the right. Perfect for navigation menus and side panels.
Element slides in from the left. Use for back navigation and content reveals.
Element slides up from below. Ideal for dropdowns, tooltips, and card reveals.
Smooth scaling effect. Use for hover states, focus effects, and emphasis.
Rotational transition. Great for loading spinners, icon flips, and attention grabbers.
Horizontal flip effect. Perfect for card flips, 3D transforms, and before/after reveals.
Vertical flip effect. Use for image comparisons, reveal animations, and card reveals.
Element slides down from above. Perfect for notifications, alerts, and dropdown menus.
Element zooms in from smaller size. Great for image galleries, modal entrances, and focus effects.
Element zooms out from larger size. Use for modal exits, image dismissals, and collapse effects.
Horizontal skew transformation. Perfect for playful hover effects, button interactions, and dynamic UI elements.
Blur effect transition. Great for focus states, background dimming, and modal overlays.
Keyframe Animations
10 animationsSpring-like bouncing motion. Great for loading indicators, success confirmations, and playful UI elements.
Gentle pulsing effect. Perfect for attention-grabbing elements, online indicators, and call-to-action buttons.
Continuous rotation. The classic loader pattern. Best for loading states and processing indicators.
Side-to-side wobble motion. Use for error states, shaking elements, and playful interactions.
Sequential animation with delay. Perfect for list items, card grids, and staggered content reveals.
Horizontal shaking motion. Use for error states, invalid inputs, and attention-grabbing alerts.
Pulsing glow effect. Perfect for active states, featured items, and call-to-action buttons.
Spring-like elastic bounce. Great for playful interactions, button presses, and micro-interactions.
Pendulum-like swinging motion. Use for notifications, hanging elements, and playful UI components.
Double-beat heart animation. Perfect for like buttons, favorites, and emotional interactions.
Motion Principles
7 principlesDuration
Micro-interactions: 150-300ms. Page transitions: 300-500ms. Complex animations: 500ms+
Easing
ease-in-out for elegance, ease-out for entrances, ease-in for exits, linear for loops
Purpose
Every animation should serve a purpose: feedback, orientation, or delight
Respect Preferences
Use prefers-reduced-motion to respect user accessibility settings
Continuity
Maintain visual continuity between states. Elements should flow naturally from one state to another
Hierarchy
Use motion to establish visual hierarchy. Important elements get more attention through animation
Feedback
Provide immediate visual feedback for user actions. Confirm interactions with subtle motion
Best Practices
7 practicesRespect User Preferences
Always check for prefers-reduced-motion and provide non-animated alternatives for users who are sensitive to motion.
Performance First
Use transform and opacity for animations. These are hardware accelerated. Avoid animating layout properties like width or height.
Keep It Subtle
Avoid flashy, distracting animations. Motion should enhance usability, not compete for attention.
Consistent Timing
Use consistent duration across similar elements. Create a design token system for animation timing.
Test on Low-End Devices
Animations that work smoothly on your dev machine might lag on older mobile devices. Test performance on various devices.
Use Hardware Acceleration
Leverage GPU acceleration by using will-change property sparingly and sticking to transform/opacity for smooth 60fps animations.
Consider Context
Match animation style to your brand and content. Playful animations for casual apps, subtle motion for professional interfaces.