|
1 | 1 | # NgxTypedWriter | Angular |
2 | 2 |
|
3 | | -Angular component for typing text animation . Angular SSR and Universal ( previous Angular 16 ) Friendly. |
4 | | - |
5 | | -Zoneless compatibility ( developer preview ) |
| 3 | +Angular SSR-friendly typing text animation component with zoneless compatibility. |
6 | 4 |
|
7 | 5 | Based in [Typed.JS](https://github.com/mattboldt/typed.js) |
8 | 6 |
|
9 | | -Rewriter native for Angular |
| 7 | +Rewritten natively for Angular |
10 | 8 |
|
11 | 9 | # DEMO |
12 | 10 |
|
13 | 11 | See a [live demo](https://skyzerozx.github.io/ngx-typed-writer) |
14 | 12 |
|
15 | | - |
16 | 13 | ## Versions |
17 | 14 |
|
18 | 15 | Latest version available for each version of Angular |
19 | 16 |
|
20 | 17 | | ngx-typed-writer | Angular | |
21 | | -| ---------------------- | ----------- | |
22 | | -| 1.0.0 - 1.2.0 | 16.xx 17.xx | |
23 | | -| 1.3.0 | 17.x 18.xx | |
24 | | -| 1.4.0 | 18.x 19.xx | |
25 | | -| 1.5.0 | 19.x 20.xx | |
| 18 | +| ---------------- | ----------- | |
| 19 | +| 1.0.0 - 1.2.0 | 16.xx 17.xx | |
| 20 | +| 1.3.0 | 17.x 18.xx | |
| 21 | +| 1.4.0 | 18.x 19.xx | |
| 22 | +| 1.5.0 | 19.x 20.xx | |
| 23 | +| 1.6.0 | 20.x 21.xx | |
26 | 24 |
|
27 | 25 | ## Basic Usage |
28 | 26 |
|
@@ -83,7 +81,7 @@ In the following example emable `smartBackspace`, this would only backspace the |
83 | 81 |
|
84 | 82 | ```bash |
85 | 83 | npm install ngx-typed-writer |
86 | | -``` |
| 84 | +``` |
87 | 85 |
|
88 | 86 | ## Import Standalone |
89 | 87 |
|
@@ -118,30 +116,28 @@ export class AppModule { } |
118 | 116 |
|
119 | 117 | # API |
120 | 118 |
|
121 | | - |
122 | | - |
123 | 119 | # Inputs |
124 | 120 |
|
125 | | -| Input | Type | Description | |
126 | | -|----------------|------------|-----------------------------------------------------------------------------| |
127 | | -| strings | `string[]` | An array of strings to be typed. | |
128 | | -| typeSpeed | `number` | The speed at which the strings are typed, in milliseconds. | |
129 | | -| startDelay | `number` | The delay before the first string is typed, in milliseconds. | |
130 | | -| backSpeed | `number` | The speed at which the strings are back-spaced, in milliseconds. | |
131 | | -| smartBackspace | `boolean` | When use smart backspace, which means that the typing will stop <br> when the next string starts with the same characters as the current string. | |
132 | | -| shuffle | `boolean` | Whether to shuffle the strings before typing them. | |
133 | | -| backDelay | `number` | The delay before the back-spacing starts, in milliseconds. | |
134 | | -| isHTML | `boolean` | Whether the strings contain HTML. | |
135 | | -| fadeOut | `boolean` | Whether the component should fade out after each string is typed. | |
136 | | -| loop | `boolean` | When you activate the loop, the list of strings loops infinitely with the typing animation. | |
137 | | -| showCursor | `boolean` | Whether to show a cursor while the component is typing. | |
138 | | -| cursorChar | `string` | The character to use for the cursor. | |
139 | | -| fadeOutDelay | `number` | The delay before the component starts to fade out, in milliseconds. | |
| 121 | +| Input | Type | Description | |
| 122 | +| -------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 123 | +| strings | `string[]` | An array of strings to be typed. | |
| 124 | +| typeSpeed | `number` | The speed at which the strings are typed, in milliseconds. | |
| 125 | +| startDelay | `number` | The delay before the first string is typed, in milliseconds. | |
| 126 | +| backSpeed | `number` | The speed at which the strings are back-spaced, in milliseconds. | |
| 127 | +| smartBackspace | `boolean` | When use smart backspace, which means that the typing will stop <br> when the next string starts with the same characters as the current string. | |
| 128 | +| shuffle | `boolean` | Whether to shuffle the strings before typing them. | |
| 129 | +| backDelay | `number` | The delay before the back-spacing starts, in milliseconds. | |
| 130 | +| isHTML | `boolean` | Whether the strings contain HTML. | |
| 131 | +| fadeOut | `boolean` | Whether the component should fade out after each string is typed. | |
| 132 | +| loop | `boolean` | When you activate the loop, the list of strings loops infinitely with the typing animation. | |
| 133 | +| showCursor | `boolean` | Whether to show a cursor while the component is typing. | |
| 134 | +| cursorChar | `string` | The character to use for the cursor. | |
| 135 | +| fadeOutDelay | `number` | The delay before the component starts to fade out, in milliseconds. | |
140 | 136 |
|
141 | 137 | # Outputs |
142 | 138 |
|
143 | 139 | | Output | Description | |
144 | | -|--------------|--------------------------------------------------------------------------------------| |
| 140 | +| ------------ | ------------------------------------------------------------------------------------ | |
145 | 141 | | destroy | Emitted when the component is destroyed. | |
146 | 142 | | initTyped | Emitted when the first string is typed. | |
147 | | -| completeLoop | Emitted when the last string is typed and the component loops back to the beginning. | |
| 143 | +| completeLoop | Emitted when the last string is typed and the component loops back to the beginning. | |
0 commit comments