Reputation: 521
I tried using zoom
which is a simple jQuery plugin for image zooming, as seen on Medium.
Here's a Demo
.
I followed all the instructions as said by the developer, but I couldn't get it to work.
Here's my Fiddle.
It's a simple plugin but I'm not sure what I'm doing wrong.
Upvotes: 1
Views: 527
Reputation: 21725
The plugin you are using requires jQuery
. Make sure you have included that in your page. Your JSFiddle does not work as jQuery is NOT included in the fiddle.
To include jQuery into the fiddle select JAVASCRIPT
in the upper right hand corner of the JavaScript window (bottom left corner) and a menu will pop-up to select various JS libraries to include in your fiddle.
Upvotes: 2
Reputation: 3246
You just need to add JQuery in the javascript section. Check my fiddle:
<img src="http://fat.github.io/zoom.js/img/palm.jpg" data-action="zoom" width="200px">
https://jsfiddle.net/05jqd1eu/
Upvotes: 1