Drifting particles in one section
Ask Claude for petals, snow or sparks in one section and get a light effect that pauses offscreen.
See it work
You give it
Use ambient-section-particles. I run a wedding decor studio in Udaipur. On my site, the "Plan your mehendi" section (about 620px tall on desktop, deep maroon #4a1219) has a heading and two lines of text on the left and a 3-field enquiry form on the right (name, phone, wedding date) with a "Send enquiry" button. I want marigold petals drifting down through it, slowly, like they were thrown from a balcony. Plain HTML, CSS and vanilla JS, no libraries. It mustn't slow down phones, and the petals shouldn't get in the way while someone is filling in the form.
You get back
- Freezes while someone types. As soon as any field in the form has focus, the petals stop where they are. They start again when focus leaves the form.
- Density follows the section's size. One petal per 18,000 px² of section, never fewer than 12 or more than 44. On phones and low-power devices the ceiling drops to 20. A 1,280 × 620 section gets 44.
- Only runs when it can be seen. It starts when the section scrolls into view and stops when it scrolls out or the tab is hidden, then carries on from where it stopped.
- Reduced motion. If someone has turned off motion on their device, they get 10 still petals placed outside the quiet zones, and no animation loop runs at all.
All the settings are in one place:
const config = {
perArea: 18000, // one petal per 18,000 px² of section
count: [12, 44], // floor and ceiling
smallMax: 20, // ceiling on phones and low-power devices
gravity: 6, // px/s², eases each petal up to its own fall speed
wind: -4, // px/s, a slight drift to the left
sway: [8, 20], // px/s side to side
speed: [14, 30], // px/s top fall speed: about 20–45 s to cross 620px
size: [5, 11], // px, half a petal's length
opacity: [0.28, 0.72],
rotation: [-0.8, 0.8], // rad/s spin
pointerRadius: 90, // px, a cursor or finger nudges petals this close
maxDpr: 2,
colors: ['#f4a11d', '#f7c548', '#e4661c'] // marigold, yellow, saffron
};
Part of a run in Claude (Opus 5.5), Nov 2026
What it does
- Lets you set the count, gravity, wind and sway.
- Pauses the effect when the section is off screen.
- Calms down for people who turn off motion.
What's inside
ambient-section-particles/CREDITS.mdambient-section-particles/LICENSEambient-section-particles/REFERENCES.mdambient-section-particles/SKILL.mdambient-section-particles/agents/openai.yamlambient-section-particles/demo/PROMPT.mdambient-section-particles/demo/index.htmlambient-section-particles/demo/preview.jpg
How you use it
- Get the skill: one zip file. It comes with every paid plan.
- Add it to Claude. In Claude, open Customize (Plugins on newer screens), then Skills. Press +, then Create skill, then Upload a skill. In Claude Code, unzip it into ~/.claude/skills/ instead.
- Start a new chat and tell Claude what you need, the way the example above does. The skill takes it from there.
- Then ask for the work. Claude reaches for the skill when it fits, or name it: "use ambient-section-particles".
Get this skill with a paid plan
The download comes with every paid plan, along with all 204 Claude skills and the rest of the AI toolkit. “Sites that don't look templated” in this folder is free, so you can try one first.