Skip to content

Commit 61a24ae

Browse files
committed
options
1 parent 8fc1e25 commit 61a24ae

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

README.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,24 @@ $('[data-typer-targets]').typer();
2121

2222
That code will start the effect on all elements with the `data-typer-targets` attribute.
2323

24-
You obviously need to supply it with some source data. The `data-typer-targets` attribute can be either a comma-separated string or a piece of JSON.
24+
You obviously need to supply it with some source data. The `data-typer-targets` attribute can be either a comma-separated string or a piece of JSON.
25+
26+
### Options
27+
28+
There are some options that are available to you as well:
29+
30+
```javascript
31+
// Defaults
32+
{
33+
highlightSpeed : 20,
34+
typeSpeed : 100,
35+
clearDelay : 500,
36+
typeDelay : 200,
37+
clearOnHighlight : true,
38+
typerDataAttr : 'data-typer-targets',
39+
typerInterval : 2000
40+
}
41+
42+
// Set the options individually
43+
$.typer.options.highlightSpeed = 500;
44+
```

0 commit comments

Comments
 (0)