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

01

Supports changes in text content

02

Supports changes in resolution

03

Supports changes in font size

04

Supports line wrapping included

05

Easy customization of styles

06

Excellent performance

07

Smooth vibe

08

TypeScript included

Live preview

               
Toggle on

Installalation

To install our component, you only need to go through these twenty steps. Kidding, there are only two.

STEP 1

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.

npm install txtrvl
STEP 2

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.

01

What is the pre-built React Text Animation Component?

02

Is the component compatible with all browsers?

03

Are there any performance impacts when using this component?

04

Does the Txtrvl component support interactive animations based on user input?

05

Can I customize the animations provided by the component?

06

How does the Txtrvl component handle text changes?

07

How does the Txtrvl component handle browser window resizing and orientation changes?

08

How does the Txtrvl component support scroll-triggered and manual-triggered animations?

09

What makes the Txtrvl component responsive to different screen sizes?

Credits

If you like what you see, write to us and let's build or destroy something together.

contact@txtrvl.com