
Seasonal · StackD Pro
Snow
Snow that falls over the page and settles on your interface: mark any element with data-snow and a soft drift builds on its top edge, following its corners; move it fast and the snow slides off.
Code and Figma for every component, new ones almost every day.
Details
- Category
- Seasonal
- Plan
- StackD Pro
- Code
- React + Tailwind, TypeScript · 324 lines
- Files
- SnowLayer.tsx
- Needs
- React and Tailwind only
- Agents
- MCP server and shadcn registry
About
Snow that falls over your page and settles on your interface. Mark any element with data-snow and the flakes that land on its top edge build a soft drift there, following its rounded corners. Drag or scroll it and the drift goes with it; move it fast and the snow slides off and falls. The bottom of the page collects snow too.
One canvas over the page with pointer events off, so it never gets in the way. Near flakes are bigger and land; far ones are small and fall behind everything. React + Tailwind, no other libraries. Respects reduced motion.
Install
Once: add the StackD registry to components.json, with the licence key from your receipt in STACKD_LICENSE_KEY (in .env.local):
"registries": {
"@stackd": {
"url": "https://www.stackd.codes/r/{name}.json",
"headers": { "X-License-Key": "${STACKD_LICENSE_KEY}" }
}
}With the shadcn CLI:
npx shadcn@latest add @stackd/snow-layerOr let your agent add it through the StackD MCP server:
claude mcp add --transport http stackd https://www.stackd.codes/mcpPrompt for your agent
Paste it into Claude Code, Cursor, Codex or VS Code once the MCP server is connected.
Add the StackD Snow component to this project. Use the StackD MCP server: call get_component with { "name": "snow-layer" }, write the files at the paths it gives and install any npm packages it lists. Then use it where it fits, following its README for the props, and keep its own styles. It is a paid component: if the server says it needs a licence, tell me where to buy it.Use
- Copy
SnowLayer.tsxinto your project (for examplecomponents/). - Put it once in your layout, and add
data-snowto what should collect snow:
import { SnowLayer } from './components/SnowLayer'
<SnowLayer />
<div data-snow className="rounded-2xl bg-white p-6">A card</div>
Only in one box (a card, a demo) instead of the whole page:
<div className="relative h-80 overflow-hidden">
<SnowLayer contained />
<div data-snow>…</div>
</div>
In Next.js the file already starts with 'use client'. In other React setups that line does nothing.
Options
| Prop | Default | What it does |
|---|---|---|
amount | 180 | How many flakes fall at once |
wind | 0.15 | -1 (to the left) to 1 |
depth | 18 | Tallest a drift gets, px |
build | 2 | How fast drifts build: 1 gentle, 3 in seconds |
ground | true | Collect snow on the bottom |
color | '#FFFFFF' | Flake colour |
falling | true | false: no new flakes, the snow lying stays |
paused | false | Everything stops |
clear | 0 | Change this number to sweep all the snow off |
contained | false | Snow only inside the parent element |
Licence
You can use it in personal and commercial projects. Don't resell or share the component on its own.
Made by StackD · stackd.codes