textimation 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# textimation
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A simple React component for animating text with typewriter-like effects.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -10,12 +10,21 @@ bun add textimation
|
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
|
+
First, import the styles and the `AnimatedText` component:
|
|
14
|
+
|
|
13
15
|
```tsx
|
|
14
16
|
import 'textimation/styles.css';
|
|
15
|
-
import {
|
|
17
|
+
import { AnimatedText } from 'textimation';
|
|
16
18
|
|
|
17
19
|
function App() {
|
|
18
|
-
|
|
20
|
+
return (
|
|
21
|
+
<AnimatedText
|
|
22
|
+
text="Hello, world!"
|
|
23
|
+
Comp="p"
|
|
24
|
+
animationSpeed={30}
|
|
25
|
+
keepCorrectChars
|
|
26
|
+
/>
|
|
27
|
+
);
|
|
19
28
|
}
|
|
20
29
|
```
|
|
21
30
|
|
|
@@ -25,4 +34,4 @@ Please see [CONTRIBUTING.md](./CONTRIBUTING.md) for contribution guidelines.
|
|
|
25
34
|
|
|
26
35
|
## License
|
|
27
36
|
|
|
28
|
-
MIT
|
|
37
|
+
MIT License
|