1.0.12 • Published 1 year ago

react-snow-overlay v1.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

🌨️ react-snow-overlay

npm.io

DEMO: LINK

DOCS: LINK

Installation

npm install react-snow-overlay

Usage

import { SnowOverlay } from 'react-snow-overlay';

<SnowOverlay />;

Props

NameTypeDescription
maxParticlesnumberThe maximum number of snow particles displayed on the screen at once. Default is 50
colorstringThe color of the snow particles. Default is rgba(255, 255, 255, 0.8)
speed"DEFAULT" \| "FAST" \| "FASTER"Speed at which snow particles fall down the screen
zIndexnumberThe z-index of the canvas. Default is 2147483647 (2^31 - 1, max signed 32-bit integer)
disabledbooleanDisables the snow effect
disabledOnSingleCpuDevicesbooleanDisables the snow effect on devices with a single CPU core available to them. This prop exists because the premise of this library is to put the snow-painting logic onto a seperate thread other than the main one to keep the rest of your site running smoothly. However, some devices/browsers may only have one CPU core, making this impossible. This prop prevents snow being shown on such devices as it may cause performance issues. Default is false but I recommend you set it to true
1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

0.0.0

1 year ago