Skip to content

Commit

Permalink
Merge pull request #465 from SephReed/patch-1
Browse files Browse the repository at this point in the history
Clearer README
  • Loading branch information
ganlanyuan authored Sep 21, 2019
2 parents 02ebdf1 + 7475411 commit 49be906
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,19 +229,19 @@ Tiny slider for all purposes, inspired by [Owl Carousel](https://owlcarousel2.gi
```

#### 3. Call tns()
Add tiny-slider.js to your page:
Option A: Add tiny-slider.js to your page:
```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.9.2/min/tiny-slider.js"></script>
<!-- NOTE: prior to v2.2.1 tiny-slider.js need to be in <body> -->
```

Or import `tns` via `webpack` or `rollup`:
Option B: Import `tns` via `webpack` or `rollup`:
```javascript
// yourScript.js
import { tns } from "./node_modules/tiny-slider/src/tiny-slider"
```

Or import `tns` directly start from v2.9.2
Option C: Import `tns` directly start from v2.9.2
```html
<script type="module">
import {tns} from './src/tiny-slider.js';
Expand Down

0 comments on commit 49be906

Please sign in to comment.