manna-snowfx-xmas
v5.0.0
Published
A lightweight React component for adding dynamic snow effects to your web application.
Readme
SnowEffect
A lightweight React component for adding dynamic snow effects to your web application.
Features
- Customizable snowflake color, size, density, and speed.
- Simple integration with any React project.
Installation
npm install npm i manna-snowfx-xmasimport React from "react";
import SnowEffect from "snow-effect";
const App = () => (
<div>
<SnowEffect
snowflakeColor="#FF0000" // Customize snowflake color
speed={2} // Set animation speed
density={100} // Set snowflake density
size={1.5} // Set snowflake size
/>
</div>
);
export default App;Component Props
| Prop | Type | Default Value | Description |
| ---------------- | -------- | ------------- | ------------------------------------------------ |
| snowflakeColor | string | #FFFFFF | Customize the color of the snowflakes. |
| speed | number | 1 | Controls the speed of the falling snowflakes. |
| density | number | 150 | Controls the number of snowflakes in the effect. |
| size | number | 1 | Controls the size of the snowflakes. |
