medium-zoom is a lightweight and dependency-free JavaScript library used for creating a responsive, user-friendly image zoom / lightbox effect as seen on Medium.com pages.
Basic usage:
Download and put the medium-zoom’s JS & CSS files in the html page.
Add the zoom effect to your images.
Apply the following options to the zoom effect.
API methods.
Events.
show: Fired when the show instance method is called
shown: Fired when the zoom has finished being animated
hide: Fired when the hide instance method is called
hidden: Fired when the zoom out has finished being animated
The post Pure JavaScript Medium-style Image Zoom Library – medium-zoom appeared first on CSS Script.