Medium-like Image Zoom In Pure JavaScript – zoom.js

Category: Javascript , Zoom | December 31, 2016
Author: nishanths
Views Total: 1,257
Official Page: Go to website
Last Update: December 31, 2016
License: MIT

Preview:

Medium-like Image Zoom In Pure JavaScript – zoom.js

Description:

zoom.js is a Pure JavaScript version of the zoom.js jQuery plugin that provides the Medium-like customizable, touch-enabled, smoothly animated image zooming functionality on the pictures.

How to use it:

Include both the zoom.css and zoom.js on the webpage.

<link rel="stylesheet" href="css/zoom.css">
<script src="dist/zoom.min.js"></script>

Just add the ‘data-action’ attribute to the existing image and done.

<img src="image.jpg" data-action="zoom">
  • Богдан Щербаков

    Cool!