I rewrote and published a library for image zooming like in Medium. It’s Framework agnostic, small, dependencies free, and now (more or less) modern. The original library seemed to be abandoned for a few years now, and I needed some changes in it for my portfolio website, so I took it in my own hands.
The changes include, but are not limited to, adding a new method to swap zoomed images, updating event handlers to allow pinch-to-zoom on touch screens, rewriting to TypeScript, and modernizing the setup by changing most of the libraries and workflows.
https://github.com/SpasiboKojima/medium-zoom-next
I’ll be glad for any feedback!
A full changelog with some explanations is here:
https://github.com/SpasiboKojima/medium-zoom-next/pull/2
Top comments (0)