Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.46 KB

README.md

File metadata and controls

42 lines (30 loc) · 1.46 KB

resnow ❄️

React component for snow on your webpage ☃️

npm Build Status

Install

npm install --save resnow
yarn add resnow

Usage

Requires React 16.3 or later.

import React from 'react'
import Snow from 'resnow'

export default () => (
  <div style={{ background: 'blue' }}>
    <Snow />
  </div>
)
Prop Effect
max Number of particles. Default: 32
speed Speed of particles, in ms. Default: 32
color Color of particles. Default: rgba(255, 255, 255, 0.75)
width/height Size of <canvas>. Default: 1024x768, but fills browser window

License

MIT © @lachlanjc