Butter-smooth hover zoom component with customizable scale grids, panning thresholds, and lightbox transitions.
<link rel="stylesheet" href="https://cdn.get-set.it/gs-zoom/latest/gs-zoom.min.css"> <script src="https://cdn.get-set.it/gs-zoom/latest/gs-zoom.min.js"></script>
import Zoom from '@get-set/gs-zoom'; export default function App() { return ( <Zoom type="lightbox" > <img src="/tech_banner.png" alt="Demo Image" data-gstitle="Futuristic Workspace" data-gssubtitle="Developer Environment" data-gszoomsrc="/tech_banner.png" /> </Zoom> ); }
| Option | Type | Default | Description |
|---|---|---|---|
| reference | string | auto | Unique registry key. Auto-generated if omitted. |
| type | 'lightbox'|'magnifier' | 'lightbox' | Plugin mode. |
| arrows | boolean | true | Show prev/next arrow buttons. |
| navigateWithKeys | boolean | true | Enable ← → keyboard navigation. |
| showAdditionals | boolean | true | Show thumbnail strip in lightbox. |
| zoomOnWheel | boolean | true | Zoom with mouse wheel. |
| maxZoom | number | 5 | Maximum zoom multiplier. |
| disableFullScreen | boolean | false | Prevent fullscreen API call on open. |
| imgLoading | string | '' | HTML string shown while image loads. |
| autoplaySpeed | number | 5000 | Autoplay interval in ms. |
| mainImageQueryParameters | string | '' | Query string appended to main image src. |
| additionalImageQueryParameters | string | '' | Query string appended to thumbnail src. |
| magnifier.zoom | number | 3 | Zoom multiplier inside lens in magnifier mode. |
| magnifier.form | 'circle'|'square' | 'circle' | Shape of the magnifier lens. |
| magnifier.size | number | 150 | Lens diameter/side in px. |
| responsive | ResponsiveOption[] | [] | Breakpoint overrides (sorted automatically). |
| data-gstitle | string | — | HTML Image Attribute: Title text shown below the image in lightbox. |
| data-gssubtitle | string | — | HTML Image Attribute: Subtitle text. |
| data-gsdescription | string | — | HTML Image Attribute: Description text. |
| data-gszoomsrc | string | — | HTML Image Attribute: Alternative high-res src for the magnifier. |
Follows cursor movements smoothly across boundaries.
Injects high-resolution images dynamically on zoom.
GSAP-driven easing curves for entering and exiting states.
Full screen overlay toggle with image details.