0.1.1 • Published 4 months ago

snowflake-app v0.1.1

Weekly downloads
-
License
-
Repository
github
Last release
4 months ago

Snowflake-App

Snowflake-App is a lightweight and customizable React component library for adding a beautiful snowfall effect to your web applications. It's perfect for creating a festive, wintery atmosphere on your site!

Features

  • Easy Integration: Effortlessly add a snowfall effect to your React app.
  • Customizable: Configure the size, speed, and intensity of the snowflakes to match your app's design.
  • Performance-Optimized: Smooth animations that don't compromise on performance.

Installation

You can install the Snowflake-App using npm:

npm install snowflake-app

Usage

To use the Snowfall component in your application, simply import it and add it to your component's render method:

import React from 'react';
import Snowfall from 'snowflake-app';

function App() {
  return (
    <div className="App">
      <Snowfall />
    </div>
  );
}

export default App;

Props

Customize the snowfall effect in your application by passing these props to the Snowfall component:

  • sizeRange (Array of two numbers): Specifies the minimum and maximum size of the snowflakes in pixels. Default is [10, 30].

    Example: <Snowfall sizeRange={[5, 20]} />

  • speed (Number): Determines the falling speed of the snowflakes. A higher number results in faster falling snowflakes. Default is 5.

    Example: <Snowfall speed={4} />

  • intensity (Number): Controls the frequency at which snowflakes are generated. A higher number results in more snowflakes being generated, creating a denser snowfall. Default is 100000000.

    Example: <Snowfall intensity={50000000} />

These props allow you to fine-tune the snowfall effect to suit the specific needs and design of your application.

Example with Custom Props

Here's how you can use Snowfall with custom properties:

<Snowfall sizeRange={[5, 15]} speed={4} intensity={50000000} />

Contributing

Contributions are welcome! If you have ideas for improvement or have found a bug, please feel free to open an issue or submit a pull request.

Notes:

  1. Adjust the Install Commands: Replace snowflake-app with the actual name you use when publishing your package to npm.

  2. Customize Further: Feel free to add any additional sections you think might be helpful, like a section for reporting issues, a changelog, or a contribution guide.

  3. License Link: Make sure the license link points to the correct file in your repository.

With this README.md, users will have clear instructions on how to use your snowfall effect library in their projects. Remember to keep the documentation up-to-date with your library's development!

0.1.1

4 months ago

0.1.0

4 months ago