1.0.12 • Published 7 months ago

react-snow-overlay v1.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months 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

7 months ago

1.0.11

7 months ago

1.0.10

7 months ago

1.0.9

7 months ago

1.0.8

7 months ago

1.0.7

7 months ago

1.0.6

7 months ago

1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

0.0.0

7 months ago