Getting Started
Overview
Installation
Theme
Forms
Basic Inputs
Select
Custom Inputs
Components
Navigation
Components
69
Micro Charts
Libraries
Kanban Board
Image Designer
Video Player
Visual Builder
Content Editor
Data View
Latest npm version of @ngstarter-ui/componentsWeekly npm downloads of @ngstarter-ui/components
Purchase

Image Zoom viewer

Image Zoom Viewer gives an inline image a Medium-style zoom interaction. Wrap the image with ngs-image-zoom-viewer and mark the image with ngsImageZoomViewerImage. When the user clicks it, the component clones the same image into an overlay and animates it from its current page position to a larger centered view.

Use it in articles, product pages, portfolios, documentation screenshots, and image-rich content where users should quickly enlarge one inline image without opening a full gallery viewer. It closes on backdrop click or Escape and recalculates the zoom on window resize.

Do not use Image Zoom Viewer for thumbnail galleries with full-size source URLs, titles, captions, or descriptions; use ImageViewer. Do not use it for image editing, crop selection, displayed-width resizing, before/after comparison, static images, or placeholders. Use ImageDesigner, Crop, ImageResizer, ComparisonSlider, a normal img, or ImagePlaceholder for those cases.

Key features:
  • Click an inline image to zoom it into an overlay.
  • Animates from the image's current page position.
  • Recalculates zoom level on window resize.
  • Closes with Escape or backdrop click.

API Image Zoom viewer

import { ImageZoomViewer, ImageZoomViewerImage } from '@ngstarter-ui/components/image-zoom-viewer';

Properties
NameDescriptionTypeDefault

No public properties available.

Events
NameDescription

No public events available.