Elevate your type dynamic
Pre-built React component designed for text animation
Up your game with text reaveal
We would very much like to present here the disadvantages of our component, but we failed to do so
Supports changes in text content
Supports changes in resolution
Supports changes in font size
Supports line wrapping included
Easy customization of styles
Excellent performance
Smooth vibe
TypeScript included
Live preview
Installalation
To install our component, you only need to go through these twenty steps. Kidding, there are only two.
Install
To install the component, run npm install Txtrvl in your project directory. Ensure that you have Node.js and npm installed in your environment. After installation, you can import the component into your React application.
Use it
After installing, import the Txtrvl component into your React file using import TextAnimation from 'react-text-animation-component';. Then, add the component to your React component (picture). Customize the animation by adjusting properties such as animationType, speed, and color to fit your application's design and needs.
<Txtrvl
className="color-red"
style={{ fontSize: "7rem", color: "red" }}
text="Lorem ipsum dolor sit amet cons ectetlit."
delayPerRow={200} // each row = +200ms delay
duration={1500}
onChange={(isVisible) => console.log(isVisible)}
manualTrigger={{ // optional config
isVisible: manualTextRevealState, // true | false
}}
scrollTrigger={{
offsetY: 500,
disabled: false, // true | undefined
resetPolicy: "above", // "no-reset" | "both"
threshold: 0.5, // % of visible txt
delay: 0,
}}
/>
FAQ
No one ever asks us anything, so we had to write everything ourselves so the bot would have something to read.