react-cherryblossom

0.1.2 • Public • Published

react-cherryblossom

A Cherryblossom component for React.

Live Demo : https://shuhei-tagawa.github.io/react-cherryblossom/

Getting Started

Installation

$ npm install --save react-cherryblossom

Usage

import React, { Component } from 'react';
import Cherryblossom from 'react-cherryblossom';
 
class MyComponent extends Component {
    render(){
        return (
            <Cherryblossom />
        )
    }
}

Default Options

Argument Type Default Value Description
amount Number 80 Amount of cherryblossom petals.
size Number 12 Size of cherryblossom petals (px).
velocity Number 1.5 Vertical speed for X.
windforce Number 2 Horizontal wind power.
rolling Number 2 Rolling speed for Y.
zindex Number auto Specifies the stack order of the canvas layer.

Package Sidebar

Install

npm i react-cherryblossom

Weekly Downloads

5

Version

0.1.2

License

MIT

Unpacked Size

157 kB

Total Files

9

Last publish

Collaborators

  • shuheitagawa