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 2
2
3
3
A simple library for image zooming; [ as seen on Medium] [ medium-zoom-article ] .
4
4
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
8
12
9
13
** Live demo** : https://spinningarrow.github.io/zoom-vanilla.js
10
14
@@ -16,7 +20,7 @@ will open the image in a new tab instead of zooming it.
16
20
17
21
## Usage
18
22
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
20
24
install via npm by running ` npm i zoom-vanilla.js ` .
21
25
22
26
2 . 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