Skip to content
React component for snow on your webpage ☃️
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
src
.babelrc
.editorconfig
.gitignore
.travis.yml
README.md
package.json
rollup.config.js
yarn.lock

README.md

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

You can’t perform that action at this time.