You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-5Lines changed: 10 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,17 +9,22 @@ https://fat.github.io/zoom.js
9
9
10
10
1. Link the zoom.js and zoom.css files to your site or application.
11
11
12
-
`<link href="css/zoom.css" rel="stylesheet">`
13
-
14
-
`<script src="js/zoom.js">`
12
+
```html
13
+
<linkhref="css/zoom.css"rel="stylesheet">
14
+
<scriptsrc="js/zoom.js"></script>
15
+
```
15
16
16
17
2. zoom.js is dependent on [transition.js file](https://raw.github.com/twbs/bootstrap/master/js/transition.js) from Bootstrap, so make sure to include that as well.
17
18
18
-
`<script src="js/transition.js">`
19
+
```html
20
+
<scriptsrc="js/transition.js"></script>
21
+
```
19
22
20
23
3. Add a `data-action="zoom"` attribute to the images you want to make zoomable. For example:
0 commit comments