StealThis .dev

Museum — Deep-Zoom Image Viewer

A refined deep-zoom study viewer for a fictional gigapixel scan of Eluned Varga's 1883 painting Cartography of a Quiet Sea. Explore a richly detailed SVG seascape with zoom in/out buttons, a precision slider, mouse-wheel and pinch zoom toward the cursor, click-drag panning, double-click to magnify, and a fullscreen toggle. A live percentage readout, a magnification meter, curated detail jumps, and a navigator minimap with a draggable viewport rectangle keep you oriented at every level of zoom.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

Deep-Zoom Image Viewer

A conservation-lab style deep-zoom viewer for the fictional Meridian Museum, built around a high-detail SVG composition that stands in for a 1.4-gigapixel scan of Eluned Varga’s painting Cartography of a Quiet Sea (1883). The artwork sits in a dark gallery mat with a gilt inner frame, and rewards close inspection with a compass rose, a hand-lettered cartouche, distant ships and fathom soundings that only resolve once you push past 300% magnification.

Every common gesture is supported: the plus and minus buttons and a precision range slider step the zoom, the mouse wheel and two-finger pinch zoom toward the pointer, and click-drag pans the image with the viewport always clamped so the artwork covers the frame. Double-click magnifies toward the cursor, and keyboard users get +, -, 0, F and arrow keys with a visible focus ring on the stage. A live percentage pill and a magnification meter track the current scale.

A navigator minimap in the corner renders a low-resolution preview of the scan with a gilt rectangle showing the current viewport; clicking the minimap recentres the view there. Curated detail jumps in the object record panel fly the viewer to specific passages, a fullscreen toggle expands the stage edge-to-edge, and a small toast() helper confirms resets, jumps and mode changes. The whole layout is AA-contrast, keyboard-usable and responsive down to roughly 360px.

Illustrative UI only — demo data; not a real museum system.