❄️ Beautiful, customizable snowfall effects for React with accumulation and fading animations.
- 🎨 Fully customizable snowflakes (size, color, shape, speed)
- 🏔️ Snow accumulation on DOM elements
- ⏱️ Automatic fading after specified time
- 🎮 Interactive controls panel
- 📱 Responsive and performant
- 🎯 TypeScript support
- 🎨 Tailwind CSS compatible
- 🔧 Multiple presets and themes
- 🎪 Extensible and pluggable
npm install @openflygroup/snowfall zustandimport {
SnowCanvas,
SnowAccumulation,
SnowControls,
} from "@openflygroup/snowfall";
function App() {
return (
<>
<SnowCanvas accumulationElements={[".card", "h1"]} />
<SnowAccumulation elementId="header" />
<SnowControls />
<h1 className="relative">Winter Wonderland</h1>
<div className="card relative">Snow will accumulate here</div>
</>
);
}By default, the library imports its own prebuilt Tailwind‑based stylesheet.
If you prefer an explicit import, you can do:
import "@openflygroup/snowfall/styles";- Docs site (GitHub Pages):
https://openflygroup.github.io/snowfall/ - Storybook with live examples:
https://openflygroup.github.io/snowfall/storybook/
Please read our Contributing Guide.
MIT © OpenFly Group