UNPKG

smooth-zoom

Version:

A light weight javascript library for zooming images.

20 lines (16 loc) 527 B
type AllowedTarget = string | HTMLElement | NodeList | Array<HTMLElement> | null | undefined; interface ZoomOption { background?: string; useMaximumSize?: boolean; onTransitionEnd?: (img: HTMLImageElement) => void; onClick?: (img: HTMLImageElement) => void; } declare function Zoom( selector?: AllowedTarget, options?: ZoomOption, ): { zoom: (img: HTMLImageElement) => void; attach: (target: AllowedTarget) => void; detach: (target: AllowedTarget) => void; }; export { Zoom as default };