2.0.5 • Published 4 years ago

react-explode v2.0.5

Weekly downloads
505
License
ISC
Repository
github
Last release
4 years ago

React-explode

React Explode is a collection of explosion animations made in SVG and GSAP.

Instalation

npm install or yarn install

Usage

import React, {Component} from "react";
import Explosion from "react-explode/Explosion1";

class ReactExplode extends Component {
    render() {
        return (
            <Explosion size="400" delay={0} repeatDelay={0.1} repeat={5} />
        );
    }
}

Component API

NameTypeDefaultDescription
sizestring400The explosion size
delaynumber0How much time the explosion would wait before it starts
repeatDelaynumber0How much time the explosion would wait before it repeats
repeatnumber0How many times the explosion repeats
colorstringwhiteThe explosion color(Explosions: 1, 2, 3, 4, 5, 6, 7, 8)
styleobjectundefinedThe style passed to SVG element
onCompletefuncundefinedFired when the explosion completes
onRepeatfuncundefinedFired when the explosion repeats
onStartfuncundefinedFired when the explosion starts

License

react-explode is under the MIT license.