File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -21,4 +21,24 @@ $('[data-typer-targets]').typer();
2121
2222That 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+ ```
You can’t perform that action at this time.
0 commit comments