1.0.2 • Published 3 years ago

react-text-explode v1.0.2

Weekly downloads
3
License
ISC
Repository
-
Last release
3 years ago

react-text-explode

react-text-explode is a react base component with zero dependencies, use to add the exploding effect.

codesandbox demo -> Demo

Installation

Use the package manager npm to install .

npm install react-text-explode

Usage

import React from "react";
import { TextExplode } from "react-text-explode";

import "./styles.css";

export default function App() {
  return (
    <div className="App">
      <h1>react-text-explode</h1>
      <TextExplode text="Are you ready ?" trigger="click" />
    </div>
  );
}
propsdefault valuetypeinfo
textLoadingstringthe text you want to apply the effect on.
triggermouseoverstringevent to trigger the effect ( mouseover or click ).
initialFontSize12pxstringtext font size before effect apply.
timerMsundefinednumber Or undefinedactive auto trigger when timer end

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago