File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 22
33A simple library for image zooming; [ as seen on Medium] [ medium-zoom-article ] .
44
5- This is a fork of the [ jQuery plugin by fat] [ fat-zoom ] . This version does
6- ** not** depend on jQuery or any third-party libraries and is of equivalent file
7- size.
5+ This is a fork of the [ jQuery plugin by fat] [ fat-zoom ] . These are the key differences:
6+
7+ 1 . No jQuery dependency; vanilla JavaScript only
8+ 2 . Equivalent file size (the minified version is slightly smaller due to better
9+ minification)
10+ 3 . Includes bug fixes not present in the original, since the original is no
11+ longer being maintained
812
913** Live demo** : https://spinningarrow.github.io/zoom-vanilla.js
1014
@@ -16,7 +20,7 @@ will open the image in a new tab instead of zooming it.
1620
1721## Usage
1822
19- 1 . Download ` dist/zoom-vanilla.min.js ` and ` css /zoom.css` from GitHub, or
23+ 1 . Download ` dist/zoom-vanilla.min.js ` and ` dist /zoom.css` from GitHub, or
2024 install via npm by running ` npm i zoom-vanilla.js ` .
2125
22262 . Add the ` zoom-vanilla.min.js ` and ` zoom.css ` files to your HTML page:
You can’t perform that action at this time.
0 commit comments