Transparent svg snowflakes on your website.
- Falling
- Spinning
- Blowing wind
- Random sizes
- Parallax effect
https://xec.github.io/snowflakes
Requires Node.js installed
npm i -D @xec/snowflakes
import snowflakes from '@xec/snowflakes'
// generate flakes and start animation
snowflakes.start()
// stop animation
snowflakes.stop()
// toggle animation on/off
snowflakes.toggle()
// set flake count, default is 90
snowflakes.updateCount(int)
// set speed, default is 1, recommended between 0.1 and 10
snowflakes.updateSpeed(float)