Kinetic UI
Back to Introduction
Page Transitions

Morph Transition

Elastic layout morph transitions between grid and focus views.

Quick Actions
CLI Installation
npx kinetic-ui-cli@latest add morph-transition

An incredibly complex layout morphing component using Framer Motion's layoutId. Perfect for portfolios or feature highlights where clicking a grid item seamlessly expands it into a detailed modal view without losing context.

Live Preview

morph-transition-demo
Design System

Premium UI

Fluid Animation

Motion Design

Spring Physics

Natural Feel

Installation

npx kinetic-ui-cli@latest add morph-transition

Usage Guide

1. Import the Component

Import the component into your React or Next.js page:

import { MorphTransition } from "@/components/creative/morph-transition";

2. Implementation Example

Render the component and customize its behavior by passing props:

import { MorphTransition } from "@/components/creative/morph-transition";

export default function Example() {
  return (
    <div className="w-full flex items-center justify-center p-8">
      <MorphTransition
        items{/* value */}
        variant{/* value */}
      />
    </div>
  );
}
Performance Notes
  • Uses CSS hardware acceleration via GPU transform-binds.
  • Damped interpolation minimizes paint-redraw flashes.
  • Tree-shakable import: only compiles elements requested.
Accessibility Notes
  • Full keyboard focus-ring navigation support (`Tab`/`Shift+Tab`).
  • ARIA roles mapped correctly for assistive screen readers.
  • Respects `prefers-reduced-motion` system toggles.