Skip to content

Commit 007a327

Browse files
committed
Update README.md
1 parent efa29ab commit 007a327

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,17 @@ A better way for new feature introduction and step-by-step users guide for your
66
##How to use
77
Simple 3 steps.
88

9-
1) Include `intro.js` and `introjs.css` (or minified version for production) in your page.
9+
**1)** Include `intro.js` and `introjs.css` (or minified version for production) in your page.
1010

11-
2) Add `data-intro` and `data-step` to your HTML elements.
11+
**2)** Add `data-intro` and `data-step` to your HTML elements.
1212
For example:
1313
```html
1414
<a href='http://google.com/' data-intro='Hello step one!' data-step='1'></a>
1515
````
1616

17+
**3)** Call this JavaScript function:
18+
```javascript
19+
introJs().start();
20+
````
21+
22+
Also you can pass one parameter to `introJs` function to limit the presentation section, for example `introJs(".introduction-farm").start();` runs the introduction only for elements with `class='introduction-farm'`.

0 commit comments

Comments
 (0)