
Welcome to Zoomable Image
Your light library for zooming images!
With this library, we can easily create performant zoomed images on click or programmatically.
The complete function weights only 1.2 kB
.
Features 🎯
- 📱 Responsive: dynamically scale according to viewport.
- 🧩 Typed: fully typed for enhanced development experience.
- ⚖️ Lightweight: approximately
1 kb
. - 🚀 Performant: optimized to be fast.
- 🔎 Flexibility: select the images you want to be zoomable or do it programmatically.
- 🌈 Accessible: designed and conceived to leave no one behind.
- 🖱 Mouse, keyboard and gesture friendly: click out the image, click the close button, press
ESC
or scroll to close the zoom. - 🕵🏽 Customization: set your scroll offset, image sizes & close button styles.
- 🌐 Framework agnostic: works with React, Vue, Svelte, Solid, MDX, etc.