Image Zoom Feature - TYPO3 Docs Theme

This demo showcases the image zoom feature for the TYPO3 documentation theme. See PR #1139 for implementation details.

RST Syntax

.. figure:: /Images/screenshot.png
   :alt: Backend screenshot
   :zoom: lightbox           # lightbox | gallery | inline | lens
   :gallery: screenshots     # Group name for gallery navigation
   :zoom-indicator: true    # Show/hide zoom icon (default: true)
   :class: with-border with-shadow

   Caption text here

1. Lightbox Mode Recommended

Click to open the image in a full-screen overlay dialog. Press Escape or click outside to close.

RST Usage

.. figure:: /Images/screenshot.png
   :zoom: lightbox
   :class: with-border with-shadow

   Click to enlarge

Live Demo

Sample Image 1
Click to open lightbox
Sample Image 2
With border and shadow
Sample Image 3
Indicator hidden

2. Gallery Mode Full Features

Click to open in a gallery viewer. Use to navigate, scroll to zoom, drag to pan.

RST Usage

.. figure:: /Images/step1.png
   :zoom: gallery
   :gallery: tutorial

   Step 1 of tutorial

Live Demo - Gallery Group "demo"

Gallery Image 1
Image 1 of 3
Gallery Image 2
Image 2 of 3
Gallery Image 3
Image 3 of 3

3. Inline Zoom Mode

Scroll wheel zooms directly on the image. When zoomed, drag to pan. Double-click or Escape to reset.

RST Usage

.. figure:: /Images/diagram.png
   :zoom: inline

   Scroll to zoom in place

Live Demo

Inline Zoom Image
Scroll to zoom, drag to pan
Inline Zoom Image 2
Use +/- keys to zoom

4. Lens Mode

A magnifying lens follows your cursor, showing a zoomed view. A result panel appears beside the image.

RST Usage

.. figure:: /Images/detailed.png
   :zoom: lens

   Hover to magnify

Live Demo

Lens Zoom Image
Hover over the image
Lens Zoom Image 2
Magnifier follows cursor

Accessibility

All zoom modes support full keyboard navigation:

Respects prefers-reduced-motion media query.