textimation
v0.2.0
Published
Animated Text
Readme
textimation
A simple React component for animating text with typewriter-like effects.
Installation
bun add textimationUsage
First, import the styles and the AnimatedText component:
- You can use
.textimation-incorrectCharto style the incorrect characters. - You can use
.textimation-correctCharto style the correct characters.
.textimation-correctChar {
transition: all 0.2s ease-in-out;
opacity: 1;
}
.textimation-incorrectChar {
transition: all 0.2s ease-in-out;
opacity: 0.2;
}import 'textimation/styles.css';
import { AnimatedText } from 'textimation';
function App() {
return (
<AnimatedText
text="Hello, world!"
Comp="p"
animationSpeed={30}
keepCorrectChars
/>
);
}Contributing
Please see CONTRIBUTING.md for contribution guidelines.
License
MIT License
