1.2.0 • Published 2 months ago

@nekzus/react-xplosion v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

React Xplosion Animation

Github Workflow npm-version npm-month npm-total

Xplosion is a React component that creates an explosion animation for text.

Installation

To install the library using npm, run the following command:

npm install @nekzus/react-xplosion

Usage

Basic Implementation

The Xplosion component can be easily incorporated into your React application. Simply provide the text you want to animate as the textInput prop:

import React from 'react';
import {Xplosion} from '@nekzus/react-xplosion';


const App = () => {
  return (
    <Xplosion textInput="Hello, world!" className="class-tw">
      <button>Click here!</button>
    </Xplosion>
  );
};

export default App;

Props

The Xplosion component accepts the following props:

  • textInput (required): The text to be animated explosively.
  • className: Additional class names to be applied to the component tailwind CSS.
  • colorClassName: A color class to specify the color scheme of the explosive animation. Available options: "blueColor", "greenColor", "pinkColor", "orangeColor", "darkColor", "lightColor".
  • style: Additional styles to be applied to the component CSS.

Example with Custom Styling

You can customize the appearance of the Xplosion component by providing additional styles or class names:

import React from 'react';
import {Xplosion} from '@nekzus/react-xplosion';

const App = () => {
  return (
    <Xplosion
      textInput="Hello, World!"
      className="class-tw"
      colorClassName="pinkColor"
      style={{ fontSize: '24px', fontWeight: 'bold' }}
    >
      <p>Hover over me with style</p>
    </Xplosion>
  );
};

export default App;

License

This project is licensed under the MIT License - see the LICENSE file for details.

1.2.0

2 months ago

1.1.1

4 months ago

1.1.0

5 months ago

1.0.13

5 months ago

1.0.12

5 months ago

1.0.11

5 months ago

1.0.10

5 months ago

1.0.9

5 months ago

1.0.8

5 months ago

1.0.7

5 months ago

1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

6 months ago

1.0.0

6 months ago