0.0.2 • Published 4 years ago
@c3b5aw/react-rewriting-text v0.0.2
react-rewriting-text
- Animated rewriting text package in 190 bytes. ( half existing package )
- If you decide to bundle it with webpack and babel, bundle size is 2.59KiB.
- Support emoji
- Only react
Install
npm install @c3b5aw/react-rewriting-text
API
import RewritingText from "@c3b5aw/react-rewriting-text";
const steps = [
'this wont rewrite - but this will', 1000,
'this wont rewrite - this will rewrite', 1000,
'this wont rewrite - also this will rewrite', 500
]
<RewritingText wrapper="p" steps={steps} />
Credits
https://github.com/camwiegert/typical https://github.com/catalinmiron/react-typical