npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

make-anything-snow

v1.0.16

Published

make any image snow

Downloads

1,287

Readme

SnowEffect

A customizable snow effect for your website. This package adds a dynamic snowing effect to a selected container, with various options for controlling the appearance, behavior, and performance of the snowflakes.

Features

  • Customizable Snowflakes: Adjust size, speed, density, and more.
  • Responsive Design: Works seamlessly across different screen sizes.
  • Performance Optimized: Efficiently manages snowflakes to ensure smooth animations.
  • Easy Integration: Simple setup for any JavaScript framework or vanilla projects.
  • TypeScript Support: Comes with type definitions for TypeScript projects.

Installation

You can install the package via npm:

npm install make-anything-snow

Config Demo

[https://make-it-snow-config.vercel.app/]

Usage

<script>
  import SnowEffect from "make-anything-snow";

  const snowEffect = new SnowEffect({
    targetSelector: ".snow-container", // CSS selector for the container to apply the effect
    minSize: 5, // Minimum snowflake size in pixels
    maxSize: 20, // Maximum snowflake size in pixels
    speed: 5, // Snowflake fall speed (higher value = faster fall)
    maxFlakes: 200, // Maximum number of snowflakes to create
    density: 50, // Snowflake density (affects the number of flakes based on container size)
    wind: 2, // Wind strength affecting horizontal movement
    rotation: true, // Whether snowflakes should rotate as they fall
    rotationSpeed: 2, // Speed at which snowflakes rotate
    opacity: 0.8, // Opacity of the snowflakes,
    imageUrl: "snowflake.png", // Image to use for snowflakes (can be a URL or base64 data)
  });

  snowEffect.init(); // Initialize and start the snow effect
</script>

<div class="snow-container">
  <h1>Welcome to my project</h1>
  <p>Enjoy the snow effect on this page!</p>
</div>

<style>
  .snow-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    pointer-events: none; /* Ensures snow doesn't block interactions */
    background: transparent; /* Set your desired background */
  }
</style>

Configuration Options

The following options can be passed to the SnowEffect constructor:

  • targetSelector (string): Required. The CSS selector of the container where the snowflakes will fall. Defaults to .snow-container.
  • imageUrl (string): Optional. The URL of the image used for snowflakes. Defaults to an SVG snowflake image.
  • minSize (number): Optional. The minimum size of snowflakes in pixels. Defaults to 10.
  • maxSize (number): Optional. The maximum size of snowflakes in pixels. Defaults to 30.
  • speed (number): Optional. The speed at which the snowflakes fall. A higher value results in faster falling snowflakes. Defaults to 5.
  • density (number): Optional. The density of the snowflakes. A higher value increases the number of snowflakes. Defaults to 30.
  • maxFlakes (number): Optional. The maximum number of snowflakes to create. Defaults to 100.
  • wind (number): Optional. The strength of the wind affecting the horizontal movement of the snowflakes. Defaults to 1.
  • rotation (boolean): Optional. Whether snowflakes should rotate as they fall. Defaults to false.
  • rotationSpeed (number): Optional. The speed of rotation for snowflakes. Defaults to 3.
  • opacity (number): Optional. The opacity of the snowflakes. Ranges from 0 (completely transparent) to 1 (fully opaque). Defaults to 0.8.