🎨 UI Patterns Learning App

Interactive examples for mastering UI design patterns

←Back to Patterns
UI Patterns Learning App

πŸ” Pinch to Zoom Pattern

Allow users to zoom in and out of content using pinch gestures or mouse wheel, with smooth panning support.

🎯 Interactive Example

Use pinch gestures on mobile or mouse wheel on desktop to zoom. Drag to pan when zoomed in.

Mountain landscape
100%

How to Use

β€’ Pinch with two fingers to zoom in/out (mobile)
β€’ Use mouse wheel to zoom in/out (desktop)
β€’ Drag to pan when zoomed in
β€’ Use the zoom controls for precise control
β€’ Click reset to return to original size

πŸ’» Code Example

JSX
Loading source code...

✨ Key Features

βœ“

Pinch Gestures

Natural zoom with two-finger pinch

βœ“

Mouse Wheel Support

Zoom with mouse wheel on desktop

βœ“

Pan & Drag

Move around when zoomed in

βœ“

Zoom Limits

Prevent over-zooming or under-zooming

βœ“

Smooth Animations

Fluid transitions and visual feedback

βœ“

Reset Functionality

Return to original size and position

🎯 Use Cases

πŸ–ΌοΈ

Image Viewers

Examine photos and images in detail

πŸ—ΊοΈ

Maps & Charts

Navigate detailed maps and diagrams

πŸ“„

Document Viewers

Read and examine documents closely