├── .gitignore
├── README.md
├── bower.json
├── demo
├── app-theme.html
└── index.html
├── index.html
├── test
└── typed-text_test.html
└── typed-text.html
/.gitignore:
--------------------------------------------------------------------------------
1 | bower_components
2 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # <typed-text>
2 |
3 | Polymer 2.0 element that simulates typing similar to [typed.js](https://github.com/mattboldt/typed.js/) for jQuery.
4 |
5 | Check out the [demo and full documentation](https://www.webcomponents.org/element/sespiros/typed-text)
6 |
7 |
24 |
25 | ## Install
26 | ```bash
27 | bower install --save sespiros/typed-text
28 | ```
29 | Install with bower or [download the zip](https://github.com/sespiros/typed-text/archive/v1.0.0.zip)
30 |
31 | ## Import
32 | ```html
33 |
34 | ```
35 |
36 | ## Usage
37 | ```html
38 |
39 | ```
40 | where `options` can be any of:
41 | * `strings`: an array of strings to be typed one after the other i.e. `["Hello world!", "typed-text is awesome"]`
42 | * `cursor`: specify a cursor string. `|` by default
43 | * `noretype`: only backspaces to erase the part of the string that is different
44 | * `noloop`: stops typing after the last string
45 | * `noblink`: stops the cursor from blinking
46 |
47 | ### Strings
48 | The typed-text strings can be set in one of two ways:
49 | * Using the strings property:
50 | ```html
51 |
52 | ```
53 | * Writing directly into the HTML element:
54 | ```html
55 |
56 |