Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 1.58 KB

README.md

File metadata and controls

54 lines (40 loc) · 1.58 KB

Typing-Animation-React

A simple React Typing animation component that takes in certain props for customization.

Sample usage:

Navigate to "src/TextCanvas.jsx", and copy the "TextCanvas.jsx" component to your src folder. Then use the component in your components like this

import TextCanvas from "./TextCanvas";
function FunctionalComponent() {
    return (
        <TextCanvas
            texts={["Hello..!!", "Welcome", "To", "Typing Animation"]}
            textcolor="#B6FFFA"
            fontSize={50}
            displayCaret={1}
            caretChar={"|"}
            speeds={{
                type: 150, //sets typing speed in milliseconds
                pause: 2000, //sets the duration of pause after a string is typed
                clear: 150, //sets the speed at which the text is cleared
                delay: 1000, //sets the pause duration between one text cleared and the next text being typed
            }}
    />
    );
}
export default FunctionalComponent;

Contribute:

Feel free to create a new PR for updates or fixes.

Note that all PRs may not be merged.

The general guidelines I'll follow are:

  • Does it make developing Typing-Animation easier?
  • Does it help improve perfomance and efficiency?
  • Does it fix a bug?
  • Does it break anything?
  • Does it stick to the original goal of Typing-Animation (Simple, easy to use and ligh-weight)
  • Does it reduce the build size?
  • Is it necessary?

License:

Licenses under MIT License.