animejs
Skill1 starsChanged 3 months agoMITView on GitHub
SVG choreography for ultraweb builds — anime.js v4 as the ONE specialist engine allowed beside motion: multi-path line draw, shape morphs, motion-path travel, 2D grid-stagger fields, split-text timelines, and scroll-scrubbed SVG sequences, wired through createScope in a client leaf against the lib/motion.ts easing mirror. GATED — installed in Phase 9 only when design/DIRECTION.md commissions the moment BY NAME and it needs at least two of those capabilities; a single path draw stays on motion pathLength or CSS, for free. Invoke when DIRECTION.md names an SVG signature move, or when the user says "animate the SVG", "the diagram should draw itself", "trace the routes in sequence", "morph the shapes", "scrub the diagram as I scroll", or "stagger the grid".
13 other projects use a version of this.
Adopted by
Most recently taken up by
- delorenj/skillstheir own version, first seen Oct 2, 2026
- xenodeve/xeno-skillstheir own version, first seen Sep 26, 2026
- SkotAlexsander/skillstheir own version, first seen Sep 16, 2026
- hoanghd218/claude-code-2-daystheir own version, first seen Aug 26, 2026
- wilfreud/skills-or-somethingtheir own version, first seen Aug 19, 2026
- Biznomad/claude-skillstheir own version, first seen Jul 14, 2026
Used with
Projects with it also use lottie, waapi and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MindrallySkilllottie
Expert guidelines for implementing performant Lottie animations on the web
Also in 4 projects that use this
anton-abyzovSkillwaapi
Web Animations API adapter patterns for HyperFrames. Use when authoring element.animate() motion, Animation currentTime seeking, document.getAnimations(), KeyframeEffect timing, fill modes, or native browser animations that must render deterministically in HyperFrames.
Also in 3 projects that use this
anton-abyzovSkillcss-animations
CSS animation adapter patterns for HyperFrames. Use when authoring CSS keyframes, animation-delay based timing, animation-fill-mode, animation-play-state, or CSS-only motion that HyperFrames must seek deterministically during preview and rendering.
Also in 3 projects that use this
OpenAISkillgsap
GSAP animation reference for HyperFrames. Covers gsap.to(), from(), fromTo(), easing, stagger, defaults, timelines (gsap.timeline(), position parameter, labels, nesting, playback), and performance (transforms, will-change, quickTo). Use when writing GSAP animations in HyperFrames compositions.
Also in 4 projects that use this
OpenAISkillhyperframes-registry
Install and wire registry blocks and components into HyperFrames compositions. Use when running hyperframes add, installing a block or component, wiring an installed item into index.html, or working with hyperframes.json. Covers the add command, install locations, block sub-composition wiring, component snippet merging, and registry discovery.
Also in 3 projects that use this
nth5693Skilltailwind
Also in 3 projects that use this
- +3 more from anton-abyzov
- +2 more from openai
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- freshtechbro/claudedesignskills★ 975same name
- boraoztunc/skills★ 388same name
- topo-ai/ai-video-skills★ 49same name
- BowTiedSwan/animejs-skills★ 48same name
- anton-abyzov/vskill★ 46same name
- delorenj/skills★ 15same name
- charlesdove977/animejs-claude-skill★ 11same name
- hoanghd218/claude-code-2-days★ 8same name
- delexw/claude-code-misc★ 2same name
- wilfreud/skills-or-something★ 2same name
3 more not listed
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 repository79 other files it gives its agents.
- ultrawebSkill
- analyticsSkill
- api-designSkill
- app-structureSkill
- assetsSkill
- authSkill
- award-canonSkill
- briefSkill
- buttonsSkill
- cardsSkill
- cartSkill
- checkpointSkill
- colorSkill
- command-paletteSkill
- component-apiSkill
- consentSkill
- content-cmsSkill
- copywritingSkill
- databaseSkill
- data-displaySkill
- data-fetchingSkill
- depthSkill
- directionSkill
- emailSkill
- faqSkill
- feature-sectionsSkill
- footerSkill
- formsSkill
- gate-accessibilitySkill
- gate-antislopSkill
- gate-codeSkill
- gate-contentSkill
- gate-performanceSkill
- gate-responsiveSkill
- gate-visualSkill
- handoffSkill
- heroSkill
- hidden-craftSkill
- i18nSkill
- iconsSkill
- identitySkill
- imagerySkill
- iterateSkill
- layout-gridSkill
- marginaliaSkill
- media-optimizationSkill
- micro-interactionsSkill
- mockupSkill
- motion-languageSkill
- navigationSkill
- overlaysSkill
- page-transitionsSkill
- paymentsSkill
- physicsSkill
- previewSkill
- pricingSkill
- print-craftSkill
- product-detailSkill
- retrofitSkill
- routingSkill
- The first 60 shown.
The file
Files
animejs — vector choreography, earned
Stage: Phase 9 — Motion (DIRECTION-gated) - Reads: design/DIRECTION.md (the commissioned moment), design/SYSTEM.md §motion, lib/motion.ts, the authored SVG - Writes: ONE SVG choreography (components/motion/*) + its drawn static state + the animeEase/animeDur mirror in lib/motion.ts
Standard
motion remains THE animation library — taste's stack lock is not up for renegotiation. anime.js is the one specialist hired beside it, and only for territory motion cannot reach: sequencing many SVG paths on one clock, morphing a path's d, walking an element along a path, staggering a 2D field, and scrubbing any of that against scroll position. That moment IS the signature move or it is not built. The empirical test: delete the dependency and try to rebuild the commissioned moment — if pathLength plus a CSS transition gets you 90% of the way, the dependency was never earned and the gate below should have caught it.
- The dependency is the design decision. A commissioned SVG-timeline moment costs +~19 KB gz, ~23 KB once
onScrollscrubs it (per STACK.md). That isaward-canon's Weight as a Feature applied to motion: the byte budget is set before the choreography, not apologized for after. - One moment, one engine. Same budget as
showpiece— one commissioned moment per site; a second anime.js moment means the first one wasn't the signature. The single exception isultraweb:micro-interactions' scramble escalation: a micro-tier reuse of thetextmodule on an already-installed engine, never a new commissioned moment and never a reason to install. - The finished artwork paints first. The SVG renders in server HTML at its final state; the timeline enhances it after mount. It is never the LCP element and never mounts hidden —
ultraweb:hero's rule, inherited. - Reduced motion lands the FINAL state. anime.js ships zero reduced-motion support (verified: zero matches in dist, per STACK.md), so this skill supplies it in two layers. A path left at full dashoffset under
reduceis invisible content, not restraint. - The clock stops when nobody is watching. A non-scrubbed timeline pauses on
visibilitychangeand when the root leaves the viewport (IntersectionObserver); a scrubbed one gets this free fromonScroll. - Every number comes from
lib/motion.ts. anime.js runs in milliseconds where motion runs in seconds; the mirror below is the only place that conversion exists. - Boundaries are hard, not stylistic. Route transitions, drag, gestures, springs, and component lifecycle stay on motion — see the table. anime.js touching any of them is fragmentation, not capability.
Process
- Gate check — all four or stop. (a) design/DIRECTION.md commissions the moment BY NAME and cites
ultraweb:animejs; (b) the moment needs ≥2 of: multi-path timeline sequencing,dmorph, motion path, 2D grid stagger, split-text choreography, scroll-scrubbed SVG; (c) SYSTEM.md §motion records intensity ≥2 — ≥3 for a scrubbed or pinned timeline; (d) the artwork exists as authored SVG (ultraweb:shape-language), not a traced blob. Any "no" → stop and return to the pipeline. A single path draw belongs to motion'spathLengthor a CSSstroke-dashoffsettransition —ultraweb:iconshas the line-draw recipe,ultraweb:scroll-motionhas the scroll half, and both cost zero bytes. - Install in Phase 9, never at scaffold: verify with
npm view animejs version, then install that version. Never@types/animejs— it is v3 and fights the bundled types (per STACK.md). - Extend
lib/motion.tswith theanimeEase/animeDurmirror. No raw durations or beziers enter a component. - Build the static drawn artwork first and ship the page with it. Only then add the
"use client"leaf:createScope({ root, mediaQueries })insideuseEffect, teardown viascope.current?.revert(). - Author the moment as ONE
createTimeline, not N parallelanimate()calls — a single clock is the whole reason the engine is here. Scrub it by passingonScroll({ …, sync: true })as the timeline'sautoplay. - Verify empirically: a performance recording ≥5s of the moment — steady 60fps, zero long tasks >50ms (driven with Playwright
browser_run_code_unsafe+ theperformance/PerformanceObserverAPI, the house mechanism); emulateprefers-reduced-motionand confirm every path reads drawn and every split line reassembled; runnpm run build, then measure the gzip delta from the network log (ornpx next experimental-analyze --output— the build table prints no sizes in Next 16) and hand it plus the DIRECTION.md citation toultraweb:gate-performancefor design/QA.md.
Engine ownership
| Moment | Owner |
| Micro feedback, simple reveals | CSS — the default, unchanged |
Component lifecycle: whileInView, AnimatePresence, layout/FLIP, springs, gestures | motion/react |
| Scroll that is a pure function of position | CSS animation-timeline |
| Scroll needing spring-smoothing, velocity, or cross-element choreography | motion useScroll |
| SVG choreography — multi-path draw, morph, motion path, grid-stagger field, split-text timeline; scroll-scrubbed SVG sequences | anime.js — this skill, DIRECTION-gated |
| Route transitions | View Transitions / template.tsx / motion — anime.js NEVER |
| Drag and gestures | motion (domMax). createDraggable is the heaviest module and is not installed — two drag systems is fragmentation |
Named moves
Six moves, all inside the one commissioned timeline. Each names the API that does it; nothing here is a second moment.
- Line-draw reveal —
svg.createDrawable(".curve")fed todraw: ["0 0", "0 1"]. Multi-path is the point:delay: stagger(120)sequences a diagram's strokes in reading order. One path alone does not clear the gate. - Morph sequence —
{ d: svg.morphTo("#target-path") }on a timeline step. Source and target need matching point counts and no baked transforms (ultraweb:shape-languageauthors both). - Motion-path traveler —
{ ...svg.createMotionPath("#lead") }spreadstranslateX/translateY/rotateonto the traveling element, so a marker rides the same geometry the reveal just drew. - Grid-stagger field —
stagger(60, { grid: [cols, rows], from: "center" }): a 2D wave across a tile field. This is a different animal from an entrance reveal — motion-language's 6-item stagger cap still governs entrances, and the field lives only here. - Split-text choreography —
splitText(el, { chars: true, accessible: true }), then stagger its.chars/.wordson the timeline.accessible: trueis the default — never turn it off;.revert()rides the scope cleanup. - Rough-annotation underline/circle — the hand-drawn marker gesture, authored as two or three deliberately imperfect SVG passes and drawn by this same timeline at the micro tier. It replaces a fourth animation runtime for one effect (per STACK.md) — the effect survives, the dependency does not. It rides an already-cleared gate and never counts toward the ≥2.
Wiring — the mirror and the scope
// lib/motion.ts — anime.js mirror, added only when DIRECTION commissions the engine
import { cubicBezier } from "animejs";
export const animeEase = {
out: cubicBezier(...ease.out), inOut: cubicBezier(...ease.inOut), in: cubicBezier(...ease.in),
} as const;
export const animeDur = { micro: dur.micro * 1000, small: dur.small * 1000, section: dur.section * 1000 } as const; // anime.js runs in ms, motion in sReduced motion is two mandatory layers: CSS authored inside @media (prefers-reduced-motion: no-preference), and the Scope's own media query in JS.
// components/motion/<moment>.tsx — inside useEffect of a "use client" leaf; root is the ref OBJECT
import { animate, createScope, svg, utils } from "animejs";
import { animeEase, animeDur } from "@/lib/motion";
createScope({ root, mediaQueries: { reduceMotion: "(prefers-reduced-motion: reduce)" } })
.add((self) => {
if (self.matches.reduceMotion) { utils.set(svg.createDrawable(".curve"), { draw: "0 1" }); return; } // final DRAWN state
animate(svg.createDrawable(".curve"), { draw: ["0 0", "0 1"], ease: animeEase.out, duration: animeDur.section });
});The Scope holds a MediaQueryList and re-runs on its change event, so toggling the OS setting live is handled and prior instances are reverted first. The reduce branch lands the final state — drawn path, assembled text — never a hidden one, and it goes through svg.createDrawable() too: draw is not a real attribute, so a raw selector writes an inert draw="0 1" and nothing is drawn (per STACK.md).
Verified traps
ease: "cubicBezier(0.22, 1, 0.36, 1)"as a STRING silently runs LINEAR. Aconsole.warnis the only signal. Import the function and pass it — that is exactly whatanimeEaseabove exists for. Never forward a raw CSS custom-property string.- An unknown ease name falls back to linear with NO warning at all.
"spring","spring(1,80,10,0)", and any typo degrade silently. Validate against theeaseskeys before passing a derived value through. spring({ bounce: .7 })returns an object whose computed.durationOVERRIDES the tween's. Setting both is a silent conflict — pick one.onScroll's defaultsyncis'play pause'— threshold playback, not scrubbing. Scrubbing needssync: true; a number (e.g.0.25) adds lag-smoothing, an ease remaps progress.splitTextrewritesinnerHTMLand installs a ResizeObserver that re-splits on resize.accessibledefaults to true and keeps it screen-reader-safe — the defect is turning it off; without a.revert()you leak the observer and ship mangled markup.@types/animejsis v3. Types ship with the package; installing the DefinitelyTyped one shadows them.createScope({ root })takes the ref OBJECT, notroot.current— passing.currentsilently loses selector scoping.- Cleanup with
scope.current?.revert()— optional chaining, because StrictMode double-invokes effects and the ref may not be populated on the discarded pass (per STACK.md). - DOM-touching calls throw during SSR. The top-level import is safe;
animate,splitText, andonScrolllive insideuseEffectonly.
Pass criteria
Record all six in design/SYSTEM.md (decision + bundle delta) and design/QA.md (measurements) before the gates run:
- Performance recording shows steady 60fps over ≥5s of the moment, zero long tasks >50ms.
- ≤2 concurrent SVG choreographies per viewport — attribute animation is compositor-unfriendly and the budget is not negotiable.
- Reduced-motion emulation lands the final state on every animated node: paths drawn, split text reassembled, nothing at zero opacity.
ultraweb:gate-performancecarries a bundle entry: the measured gzip contribution, named imports only, and the DIRECTION.md line that commissioned it.- The LCP element is server-rendered text or image, not the SVG; console clean on first paint and after
revert(). - A non-scrubbed timeline is paused on a hidden tab and once the root scrolls out of view — background the tab, scroll it off, and confirm the clock stopped; a scrubbed timeline inherits this from
onScroll.
Anti-patterns
Greppable — each should return zero:
import \* as .* from "animejs"/import anime from— v4 has no default export, and a star import defeats the barrel's tree-shaking@types/animejsin package.json — the v3 package, and it shadows the bundled typesease: 'cubicBezier/ease: "cubicBezier— the string form is silently linearcreateDraggable— drag is motion's, atdomMax; two drag systems is fragmentationsync: 'play pause'on a timeline meant to scrub — threshold playback, and it is also the silent default when the key is missingaccessible: false— turning off the visually-hidden mirror shreds the text for screen readersduration: 0.in a file carryingfrom "animejs"— someone pasted motion's seconds into a millisecond engine
Detect the engine by IMPORT SPECIFIER (from "animejs"), never by a bare API name: animate( is also motion/react and WAAPI, so every call-site check above is scoped to files that carry that import. The dependency itself is not a grep but a two-part check: animejs in package.json passes only with BOTH a file importing from "animejs" under app/components AND a design/DIRECTION.md line commissioning the moment by name — either half missing is an uncommissioned engine.
And the constitutional one: a second animation engine in the bundle with no DIRECTION.md line commissioning it by name is slop wearing a dependency. motion is the animation library; this is the one specialist, hired for one moment, removable the day that moment is cut.
Worked example — Kaffeewerk Ost, /roesterei roast-profile sequence
Moved to references/example.md — read only when this build's case is genuinely ambiguous; the sections above are the decision material.
Composes with
Moved to references/composes.md — the handoff map; load it when orchestrating this skill against its neighbors.
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.

