Overview
medium-zoom enlarges images in place. Choose your setup to make your first image zoomable.
Guides
- HD images: load a larger image when zooming.
- Multiple images: make several images zoomable.
- Styling: change image layouts, captions, and the zoom background.
- Generated SVGs: zoom SVG and Mermaid diagrams as images.
- Video playback: play a video over a zoomed poster with JavaScript events.
React guides
- Custom triggers: customize the zoom button and its label.
- Controlled state: open an image from another control.
- Server rendering: use SSR and React Server Components.
Reference
Integrations
- Angular: wrap the library in a directive for Angular and Angular SSR.
- Vue: wrap the library in a component for Vue and Nuxt.
- Svelte: wrap the library in a component for Svelte and SvelteKit.
- Solid: wrap the library in a component for Solid and SolidStart.
- Astro: wrap optimized images in an Astro component.
- VitePress: zoom Markdown images from the VitePress theme.