Kinetic UI
Back to Introduction
Gestures & Interaction

Infinite Zoom Canvas

A massive, Miro/Figma style infinite canvas with gesture-driven panning and zooming.

Quick Actions
CLI Installation
npx kinetic-ui-cli@latest add infinite-zoom-canvas

Uses @use-gesture/react to provide 60fps pinch-to-zoom, middle-mouse panning, and trackpad scrolling across an infinite grid space.

Live Preview

Infinite Zoom Canvas

Pan & Zoom Me

Pan: Drag or Scroll

Zoom: Pinch or Ctrl+Scroll

Installation

npx kinetic-ui-cli@latest add

Usage Guide

1. Import the Component

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

import { InfiniteZoomCanvas } from "@/components/creative/infinite-zoom-canvas";

2. Implementation Example

Render the component and customize its behavior by passing props:

import { InfiniteZoomCanvas } from "@/components/creative/infinite-zoom-canvas";

export default function Example() {
  return (
    <div className="w-full flex items-center justify-center p-8">
      <InfiniteZoomCanvas
        initialScale{10}
        minScale{10}
        maxScale{10}
      >
        <div>Content goes here</div>
      </InfiniteZoomCanvas>
    </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.