cahilfoley/react-snowfall

Accepting `SnowflakeProps` in `Snowfall` component

Closed this issue · 2 comments

It would be nice if snowflakes can be customized by passing SnowflakeProps to the Snowfall component. I find it a bit strange that individual Snowflakes are already customizable, but it becomes impossible when using the Snowfall component because the default config is constant.

An example use case would be reversing the direction of the snow by setting wind: [0.5, 2].

@phosphene47 Sorry I missed this, that's a great idea - I wrote the snowflakes with that in mind but never actually exposed it. I'll implement this when I get some time soon!

This has been resolved in the version 1.1.0 release.

The demo has been updated to include most of the new properties.