GitHub

Zoomable Frame

Zoomable content container with hover zoom.

<rhx-zoomable-frame>

Examples

Image

Mountain landscape

Pre-zoomed

Mountain landscape zoomed

Properties

Property Type Default Description
rhx-src string - URL of the image to display
rhx-alt string - Alt text for the image
rhx-scale double 1 Initial zoom level
rhx-min-scale double 1 Minimum zoom level
rhx-max-scale double 3 Maximum zoom level

Accessibility

  • Keyboard shortcuts support zoom in (+), zoom out (-), and reset (0).
  • The container uses aria-label to describe the current zoom level for screen readers.
  • Double-click resets zoom to the default level for easy recovery.