File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,17 +15,17 @@ will open the image in a new tab instead of zooming it.
15
15
16
16
## Usage
17
17
18
- Download ` dist/zoom-vanilla.min.js ` and ` css/zoom.css ` from GitHub, or install
19
- via npm by running ` npm i zoom-vanilla.js ` .
18
+ 1 . Download ` dist/zoom-vanilla.min.js ` and ` css/zoom.css ` from GitHub, or
19
+ install via npm by running ` npm i zoom-vanilla.js ` .
20
20
21
- 1 . Add the ` zoom-vanilla.min.js ` and ` zoom.css ` files to your HTML page:
21
+ 2 . Add the ` zoom-vanilla.min.js ` and ` zoom.css ` files to your HTML page:
22
22
23
23
``` html
24
24
<link href =" css/zoom.css" rel =" stylesheet" >
25
25
<script src =" dist/zoom-vanilla.min.js" ></script >
26
26
```
27
27
28
- 2 . Add a ` data-action="zoom" ` attribute to the images you want to make
28
+ 3 . Add a ` data-action="zoom" ` attribute to the images you want to make
29
29
zoomable:
30
30
31
31
``` html
You can’t perform that action at this time.
0 commit comments