textbloom
v0.1.2
Published
A React text animation component library
Maintainers
Readme
TextBloom
A lightweight React component library for text animations.
Install
npm install textbloom
# or
pnpm add textbloom
# or
yarn add textbloomUsage
Import the component and its CSS:
import { TextReveal } from "textbloom";
import "textbloom/style.css";
function App() {
return <TextReveal>Hello World</TextReveal>;
}<TextReveal />
A character-by-character reveal animation with blur transition.
Props
| Prop | Type | Default | Description |
|------|------|---------|-------------|
| children | string | — | Text content to animate |
| text | string | — | Alternative to children prop |
| color | string | "inherit" | Text color |
| delay | number | 80 | Delay between each character (ms) |
| initialDelay | number | 0 | Initial delay before animation starts (ms) |
| className | string | — | Additional CSS class |
| style | React.CSSProperties | — | Additional inline styles |
Example
<TextReveal
text="Welcome"
delay={100}
initialDelay={200}
color="#e11d48"
/>Requirements
- React >= 17
License
ISC
