Skip to content

Commit 65a4f98

Browse files
author
fat
committed
clean up code blocks a bit in docs
1 parent 6b5ba63 commit 65a4f98

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,22 @@ https://fat.github.io/zoom.js
99

1010
1. Link the zoom.js and zoom.css files to your site or application.
1111

12-
`<link href="css/zoom.css" rel="stylesheet">`
13-
14-
`<script src="js/zoom.js">`
12+
```html
13+
<link href="css/zoom.css" rel="stylesheet">
14+
<script src="js/zoom.js"></script>
15+
```
1516

1617
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.
1718

18-
`<script src="js/transition.js">`
19+
```html
20+
<script src="js/transition.js"></script>
21+
```
1922

2023
3. Add a `data-action="zoom"` attribute to the images you want to make zoomable. For example:
2124

22-
`<img src="img/blog_post_featured.png" data-action="zoom">`
25+
```html
26+
<img src="img/blog_post_featured.png" data-action="zoom">
27+
```
2328

2429

2530
### Why

0 commit comments

Comments
 (0)