0.1.6 • Published 10 months ago

rainmaker-react v0.1.6

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

Rainmaker React Component

This React Component generates a rain effect in an html canvas. Check out a demo of it here: demo

How to use

  1. Install from npm:
npm install rainmaker-react
  1. Import the React Component in your file
import { RainEffect } from "rainmaker-react";
  1. Use the default React Component for use your customize your own properties
import React from "react";

const App: React.FC = () => {
  return (
    <div>
      {/* default */}
      <RainEffect />

      {/* custom */}
      <RainEffect
        className="rain-effect"
        count={COUNT}
        wind={WIND}
        fps={FPS}
        fallSpeed={FALLSPEED}
        jitterX={JITTER}
        dropletLength={LENGTH}
        dropletWidth={WIDTH}
        dropletStyle={STYLE}
        bgStyle={BGSTYLE}
        noBackground={NO_BACKGROUND}
      />
    </div>
  );
};
0.1.6

10 months ago

0.1.5

10 months ago

0.1.4

10 months ago

0.1.3

10 months ago

0.1.2

10 months ago

0.1.1

10 months ago

0.1.0

10 months ago