Skip to content

xailabs/react-reveal-text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@xailabs/react-reveal-text

Animates text by revealing it word-by-word and letter-by-letter

demo

Installation

via yarn:

yarn add @xailabs/react-reveal-text

via npm:

npm install --save @xailabs/react-reveal-text

Usage

import React from 'react';
import RevealText from '@xailabs/react-reveal-text';

export class MyComponent extends React.Component {
    render() {
        return (
            <div>
                <h3>
                    <RevealText text="My title" />
                </h3>
                <RevealText text="This is my text" />
            </div>
        );
    }
}

Examples

Check https://github.com/xailabs/react-reveal-text-demo

Options

These are the options you can specify via props:

(todo)