0.1.2 • Published 5 years ago

react-cherryblossom v0.1.2

Weekly downloads
5
License
MIT
Repository
-
Last release
5 years ago

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

ArgumentTypeDefault ValueDescription
amountNumber80Amount of cherryblossom petals.
sizeNumber12Size of cherryblossom petals (px).
velocityNumber1.5Vertical speed for X.
windforceNumber2Horizontal wind power.
rollingNumber2Rolling speed for Y.
zindexNumberautoSpecifies the stack order of the canvas layer.