web-motion
Skill6 starsChanged 26 days agoApache-2.0View on GitHub
Smooth, high-impact web motion on the compositor. Use for web animation, scroll effects, "make it smooth", and agent-swarm or cursor build effects.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- nattawai/web-studiotheir own version, first seen Nov 29, 2026
- juliomachadome/tested-agent-skillstheir own version, first seen Nov 22, 2026
- YehorSS/storymotiontheir own version, first seen Nov 22, 2026
- ryankolean/summit-claude-skillstheir own version, first seen Nov 1, 2026
- yiyu-works/skillstheir own version, first seen Oct 20, 2026
- leo-scosta/skillsettheir own version, first seen Oct 15, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- Schmandarine/web-motion-skill★ 17same name
- ryankolean/summit-claude-skills★ 4same name
- YehorSS/storymotion★ 1same name
- yiyu-works/skills★ 1same name
- juliomachadome/tested-agent-skills★ 0same name
- leo-scosta/skillset★ 0same name
- nattawai/web-studio★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- downshift-layeringSkill
- architecture-coverageSkill
- downshift-auditSkill
- downshift-effortSkill
- downshift-orchestratorSkill
- downshift-setupSkill
- downshift-squadSkill
- downshift-tuneSkill
- harness-engineerSkill
- ponytailSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 3 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Add motion on top of the page that exists.
- Very specific: line 44
Default curve cubic-bezier(.55, 0, .15, 1).
- Distinctive: line 53
Keep each stage in its own small module (overlay, agent, build queue, fills).
- Very specific: line 74
Scroll trigger: Start a section when its top crosses about 62% of the viewport.
- Distinctive: line 114
Phone: run at 375 px wide with touch emulation.
- Distinctive: line 143
No final state for skipped sections, so fast scrollers saw empty blocks.
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Web motion
Add motion on top of the page that exists. Never redesign it to make an effect
fit. Inspired by the MIT-licensed emilkowalski/skills (animate,
animation-performance) and mblode/agent-skills (ui-animation); the text here
is original.
Hard rules
- Compositor only. Animate
transform,translate,opacity,clip-pathandfilter, on small elements. Never width, height, top, left, margin or box-shadow. - Cheapest tool first. CSS transition, then WAAPI (
el.animate), then CSS keyframes, then per-frame JS.requestAnimationFrameonly for drags and physics, where the value depends on input. - Layout: read once, batch. Measure once per action, do all reads before all writes, and keep the numbers in variables.
- Banned in a frame loop: animated CSS mask gradients,
getClientRectsorgetBoundingClientRectpolling, a full-viewport canvas withshadowBlur. will-changeonly on the few nodes moving right now, removed when done.- Hide until built with
visibility:hidden, notdisplay:none: the space stays, CLS stays 0. - Progressive enhancement. Content is visible if JS fails. The script adds the hidden state, so a crash leaves a readable page.
prefers-reduced-motion: reducerenders the final state at once, with no movement and no flicker.@media (pointer: fine)gates hover and cursor extras. Touch gets none.- Interruptible. A new action cancels or retargets the running one from its current value. Never queue behind a stale animation.
- Register every animation in a per-section list. A skipped or off-screen
section calls
finish()on all of them and lands in the final state. - Generation token. Each replay bumps a counter; every loop and timer checks it and exits when it is stale.
- CSP-friendly. External script and style files, no inline handlers or
inline
<style>; set styles through CSSOM or classes.
Easing and duration
- Default curve
cubic-bezier(.55, 0, .15, 1); for entrancescubic-bezier(.16, 1, .3, 1). - Duration follows distance:
clamp(260, 200 + dist * 0.4, 720)ms (dist in px). Small UI feedback: 120-200 ms. Nothing above 720 ms unless it is a showpiece. - Stagger 30-60 ms per item, capped at about 400 ms total.
Recipe: the agent swarm builds the page
Keep each stage in its own small module (overlay, agent, build queue, fills).
- Overlay layer. One fixed,
pointer-events:none, high z-index container. Agents, selection boxes and the tour pill live there, never inside content. - Cursor agents. Each is an inline SVG arrow plus a name pill in the
agent's colour, moved only with
transform: translate3d. - Boot. Agents fly in from the edges, orbit once, then disperse to their first sections. About 1.5-2 s total, skippable.
- Per-section build, two phases, from one shared queue (each free agent
takes the next unclaimed block of the section, staggered 60-70 ms):
- Frame: a selection box with corner handles and a
W x Htag grows from the section's top-left while the agent's cursor rides the bottom-right corner. The box then settles into a skeleton. - Fill: the skeleton fades and the real content appears by type: text
types in; headings flicker in per letter with a neon glow; photos reveal
with a
clip-pathwipe; everything else fades.
- Frame: a selection box with corner handles and a
- Nudge-drag. Once in a while an agent grabs an element, moves it a few pixels and drops it on a snap guide line. It is a decoration: it must end exactly where the layout puts the element.
- Copy-drag ghost for repeated cards: drag a translucent clone to the next slot, then fill it. Build the first card fully, ghost the rest.
- Scroll trigger. Start a section when its top crosses about 62% of the
viewport. At most one section ahead of the one on screen. Fast scrolling
speeds the current section up and
finish()es the ones scrolled past. - Idle conga. With no work left, a leader follows a Lissajous path and the others follow its position history with a fixed lag per agent. Stop on the first pointer move or scroll.
- Tour pill. A fixed pill with agent avatars, a section count, a progress bar, a status line, a tour button, speed 1x/2x/4x, pause and replay. Speed scales every duration through one shared factor. Replay bumps the generation token and rebuilds.
- Mobile. At 375 px use about a third of the agents, no conga on touch, no nudge-drag, shorter boot.
UX rules on a product page
A portfolio can make the visitor wait; a product page cannot.
- The LCP element stays painted from first paint. Decorate it, never hide it. Measure LCP with and without the effect; it must not regress.
- Primary calls to action are visible and clickable at once. Overlays never take pointer events.
- Any click, key or scroll in a section finishes it instantly.
- Full build on the first visit only; later visits get the final page and a Replay control. Keep query switches to force or skip it for demos and QA.
- Focus never lands in a hidden block: focusing one finishes its section. Announce "building" and "ready" once, not per block.
- Idle motion stops by itself after about 20 s. Nothing moves forever on a page people read.
- Let the motion tell the product's story, once, subtly; decoration alone is animation debt.
Verify, do not eyeball
- Frame pacing: record rAF deltas for 10 s of scroll and build; report p95 and the count above 20 ms. Target p95 under 17 ms.
- Long tasks:
PerformanceObserver({type:'longtask'}); none during the build is the goal. - CLS: observe
layout-shift; the total must be 0. - Reduced motion: emulate
prefers-reduced-motion: reduce; the page must be complete and still. - Phone: run at 375 px wide with touch emulation; no horizontal scroll.
- Production CSP: inject the real
Content-Security-Policyheader and confirm nothing is blocked. - Trace A/B: capture a CDP trace with and without the effect and compare ScriptDuration, Layout, RecalcStyle, Paint and Layerize counts and durations. Repeat with 4x CPU throttle. Headless vsync hides dropped frames, so compare work per frame, not only the worst frame time.
- JS off: the content must still read.
Anti-patterns from a rejected attempt
Measured in headless Chrome over 6 s, overlay running vs the page alone: script 117 vs 9 ms, layout 113 vs 29 ms, style 167 vs 97 ms, paint 177 vs 95 ms, 893 vs 397 layouts. Each cause below has its fix.
| Cause | Fix |
| Per-frame CSS mask gradients on large text (multi-layer mask per line) | clip-path: inset() or a scaleX cover per line, driven by WAAPI |
Re-measuring on a timer (getBoundingClientRect, Range.getClientRects, scrollHeight, canvas resize, read/write/read) | Measure on resize, document.fonts.ready and ResizeObserver only; read everything, then write once |
Per-frame width/height writes on highlight boxes; unguarded textContent writes | Size once, animate transform: scale; write text only when it changed; cache DOM refs |
Full-viewport canvas cleared every frame at DPR 1.5 with shadowBlur and per-frame gradients | For a few beams use SVG or a transformed pre-rendered glow; else DPR 1, dirty rect, no shadowBlur |
Overlay layer as tall as scrollHeight with many promoted children | Per-section layer, or one viewport-fixed layer |
filter: drop-shadow on moving elements; blurred box-shadow on resizing boxes | Bake the glow into the asset; put the shadow on a wrapper that does not resize |
backdrop-filter on a fixed pill over animated content | Near-opaque background, no blur |
Also rejected:
- Redesigning the page to suit the effect. Motion is added on top of the existing layout and content; remove the script and the page is unchanged.
- No final state for skipped sections, so fast scrollers saw empty blocks.
- Loops that survived a replay and fought the new run.
Downshift by Tiago Vilas Boas · https://github.com/tiagovilasboas/downshift-ai
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

