1.0.5 • Published 5 years ago

@lorti/snow.js v1.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Snowflakes ❄️

https://schneeflocken.netlify.com

Installation

npm install @lorti/snow.js

Usage

snow.js is a module that exports a snow() function, which you can pass the number of snowflakes you'd like and an HTML element where they should be drawn. You can for example bundle it using Parcel.

<!-- index.html -->
<style>
    #stage {
        width: 1280px;
        height: 720px;
        background: black;
    }
</style>
<div id="stage"></div>
<script src="./index.js"></script>
// index.js
import snow from '@lorti/snow.js';
const stage = document.getElementById('stage');
snow(10, stage);
parcel index.html
1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago