![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Snowfall component for Angular2+ -- Let it snow on your page! ❄
npm install ngx-snowf --save
add SnowfModule to NgModule
import { SnowfModule } from 'ngx-snowf';
@NgModule({
imports: [
SnowfModule
]
})
use snowf component in template
<Snowf
[amount]="50"
[size]="5"
[speed]="1.5"
[wind]="0"
[color]="'#fff'"
[opacity]="0.8"
[swing]="1"
[image]=""
[zIndex]=""
/>
Argument | Type | Default Value | Description |
---|---|---|---|
amount | Number | 50 | Number of snowflakes displayed at a time. |
size | Number | 5 | Size of snowflakes. |
speed | Number | 1.5 | Vertical speed of snowflakes. The larger, the snowflakes drop faster. |
wind | Number | 0 | Horizontal wind power. Wind will blow right if this is a positive number, and a negative number makes wind blow left. |
color | String | '#fff' | Color of snowflakes. This option accepts HEX or RGB color code, such as "#fff", "#ffffff", "rgb(255,255,255)". |
opacity | Number | 0.8 | The max opacity of snowflakes. The plugin will generate snowflakes with different opacity from 0 to this number. |
swing | Number | 1 | Swing offset of snowflakes. If you don't want them to swing, set this option as 0. |
image | String | null | Set this option to replace the snowflake with your image. |
zIndex | Number | null | Position of the canvas layer. Set the layer front or back by changing this value. |
ngx-snowf is open source and released under the MIT Licence.
Copyright (c) 2017 Fuxy526
FAQs
Snowfall component for React -- Let it snow on your page! ❄
The npm package ngx-snowf receives a total of 2 weekly downloads. As such, ngx-snowf popularity was classified as not popular.
We found that ngx-snowf demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.