[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6D39V1YNXBMX3ZD1P0AVJMD":3,"skill-same:01M6D39V1YNXBMX3ZD1P0AVJMD":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":30,"linkOnly":31,"markdownContent":32,"markdownBody":33,"frontMatter":34,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":41,"repositoryHtmlUrl":42,"repositoryHomepageUrl":43,"ownerHtmlUrl":44,"ownerBlogUrl":45,"ownerDescription":46,"updatedAt":47,"install":48,"resources":61},"01M6D39V1YNXBMX3ZD1P0AVJMD","web-animations-api",null,"Web Animations API guardrails — Element.animate(), Animation object lifecycle, commitStyles, polyfill considerations","GeorgeQLe\u002Fagentic-skills","GeorgeQLe","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F21134126?v=4","01M6D2JP418S0VGJGF8M93EC3H","George Le","01M6D2JPBAKYD82TA5FS6HKQ3D",1,"MIT","https:\u002F\u002Fgithub.com\u002FGeorgeQLe\u002Fagentic-skills\u002Fblob\u002Fmaster\u002Fpacks\u002Fbase\u002Fclaude\u002Fanimation-design-planner\u002Fframeworks\u002Fweb-animations-api\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29],"web","api","web animations api","design","planning","Guardrails","lifecycle","Animation","animate","planner","v0","2026-11-10 10:12:30",false,"---\nname: web-animations-api\ndescription: Web Animations API guardrails — Element.animate(), Animation object lifecycle, commitStyles, polyfill considerations\ntype: planning\nversion: v0.0\ninvocation: sub-skill\nparent: animation-design-planner\n---\n\n# Web Animations API Implementation Guardrails\n\nThis subskill provides Web Animations API guardrails for step 5 of `\u002Fanimation-design-planner`. It is invoked automatically when the parent detects `Element.animate()` or Web Animations API usage in the project. All baseline guardrails from the parent (transform\u002Fopacity preference, reduced-motion, focus\u002Fpointer\u002Fscroll\u002Fz-index rules) still apply.\n\n## Guardrails\n\n### Animation lifecycle\n\n- `Element.animate()` returns an `Animation` object — store the reference if you need play\u002Fpause\u002Fcancel\u002Freverse control.\n- `.cancel()` reverts styles to pre-animation values. `.finish()` jumps to the end state and resolves the `finished` promise.\n- The `finished` promise rejects on cancel — always handle rejection if chaining with `await` or `.then()`.\n- For interruption: decide between cancel+restart, reverse (`playbackRate = -1`), or finish+new animation. Document the chosen strategy.\n\n### Fill mode vs commitStyles\n\n- `fill: \"forwards\"` holds the compositor layer and blocks garbage collection of the `Animation` object — avoid for one-shot transitions.\n- Prefer `commitStyles()` followed by `.cancel()` to bake the final state into inline `style` and release the animation resources.\n- Gotcha: `commitStyles()` writes inline style, which has the highest specificity — it will override stylesheet rules until explicitly cleared.\n- Use `fill: \"forwards\"` without commit only for reversible or seekable animations. State when and how the animation will be cancelled.\n- Never use `fill: \"both\"` as a default — it combines the pitfalls of both fill directions.\n\n### Composite modes\n\n- `composite: \"replace\"` (default): one animation owns the property value.\n- `composite: \"add\"`: additive — the effect is added to the base value (e.g. hover scale on top of an entrance animation).\n- `composite: \"accumulate\"`: combines values before transform application — prefer for stacking translates or rotates.\n- `iterationComposite: \"accumulate\"` only when each iteration should build on the previous one's end value.\n- Additive composition requires the element to have a defined base value for the property.\n\n### Sequencing and grouping\n\n- No built-in timeline — chain animations with `await animation.finished`.\n- Parallel: fire multiple `.animate()` calls, then `Promise.all(animations.map(a => a.finished))`.\n- Synchronized start: set `animation.startTime = document.timeline.currentTime` on all animations for frame-exact alignment.\n- GroupEffect and SequenceEffect proposals are not shipped in any browser — do not plan around them.\n- Stagger: loop with incremental `delay` values. Store all `Animation` references for collective pause\u002Fcancel\u002Ffinish control.\n\n### Proof expectations\n\n- `finished` promise resolves for every animation in a sequence.\n- After `commitStyles()`: inline `style` contains the expected values with no leaked extra properties.\n- `element.getAnimations()` returns an empty array after completion (unless the animation is intentionally kept alive).\n- `.cancel()` reverts styles cleanly — no visual flash or stuck state.\n- Interruption mid-animation produces no visual artifacts or unhandled promise rejections.\n","# Web Animations API Implementation Guardrails\n\nThis subskill provides Web Animations API guardrails for step 5 of `\u002Fanimation-design-planner`. It is invoked automatically when the parent detects `Element.animate()` or Web Animations API usage in the project. All baseline guardrails from the parent (transform\u002Fopacity preference, reduced-motion, focus\u002Fpointer\u002Fscroll\u002Fz-index rules) still apply.\n\n## Guardrails\n\n### Animation lifecycle\n\n- `Element.animate()` returns an `Animation` object — store the reference if you need play\u002Fpause\u002Fcancel\u002Freverse control.\n- `.cancel()` reverts styles to pre-animation values. `.finish()` jumps to the end state and resolves the `finished` promise.\n- The `finished` promise rejects on cancel — always handle rejection if chaining with `await` or `.then()`.\n- For interruption: decide between cancel+restart, reverse (`playbackRate = -1`), or finish+new animation. Document the chosen strategy.\n\n### Fill mode vs commitStyles\n\n- `fill: \"forwards\"` holds the compositor layer and blocks garbage collection of the `Animation` object — avoid for one-shot transitions.\n- Prefer `commitStyles()` followed by `.cancel()` to bake the final state into inline `style` and release the animation resources.\n- Gotcha: `commitStyles()` writes inline style, which has the highest specificity — it will override stylesheet rules until explicitly cleared.\n- Use `fill: \"forwards\"` without commit only for reversible or seekable animations. State when and how the animation will be cancelled.\n- Never use `fill: \"both\"` as a default — it combines the pitfalls of both fill directions.\n\n### Composite modes\n\n- `composite: \"replace\"` (default): one animation owns the property value.\n- `composite: \"add\"`: additive — the effect is added to the base value (e.g. hover scale on top of an entrance animation).\n- `composite: \"accumulate\"`: combines values before transform application — prefer for stacking translates or rotates.\n- `iterationComposite: \"accumulate\"` only when each iteration should build on the previous one's end value.\n- Additive composition requires the element to have a defined base value for the property.\n\n### Sequencing and grouping\n\n- No built-in timeline — chain animations with `await animation.finished`.\n- Parallel: fire multiple `.animate()` calls, then `Promise.all(animations.map(a => a.finished))`.\n- Synchronized start: set `animation.startTime = document.timeline.currentTime` on all animations for frame-exact alignment.\n- GroupEffect and SequenceEffect proposals are not shipped in any browser — do not plan around them.\n- Stagger: loop with incremental `delay` values. Store all `Animation` references for collective pause\u002Fcancel\u002Ffinish control.\n\n### Proof expectations\n\n- `finished` promise resolves for every animation in a sequence.\n- After `commitStyles()`: inline `style` contains the expected values with no leaked extra properties.\n- `element.getAnimations()` returns an empty array after completion (unless the animation is intentionally kept alive).\n- `.cancel()` reverts styles cleanly — no visual flash or stuck state.\n- Interruption mid-animation produces no visual artifacts or unhandled promise rejections.\n",{"name":5,"type":23,"parent":35,"version":36,"invocation":37,"description":7},"animation-design-planner","v0.0","sub-skill","master","96e2912af886dd1606b1b97df707715aef062b02","packs\u002Fbase\u002Fclaude\u002Fanimation-design-planner\u002Fframeworks\u002Fweb-animations-api",0,"https:\u002F\u002Fgithub.com\u002FGeorgeQLe\u002Fagentic-skills","https:\u002F\u002Fagentic-skills-blush.vercel.app","https:\u002F\u002Fgithub.com\u002FGeorgeQLe","georgeqle.com","George Le is a futurist and serial tech entrepreneur who wants to work toward a world where humanity is free from robotic tasks.","2026-11-10 04:07:24",{"source":8,"skillName":5,"commands":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add GeorgeQLe\u002Fagentic-skills --skill web-animations-api",{"tool":54,"command":55},"bunx","bunx skills add GeorgeQLe\u002Fagentic-skills --skill web-animations-api",{"tool":57,"command":58},"pnpm","pnpm dlx skills add GeorgeQLe\u002Fagentic-skills --skill web-animations-api","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FGeorgeQLe\u002Fagentic-skills\u002Fblob\u002Fmaster\u002Fpacks\u002Fbase\u002Fclaude\u002Fanimation-design-planner\u002Fframeworks\u002Fweb-animations-api\u002FSKILL.md",true,[],[63,75,85,97,107,117],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":30},"01M6G0NJES15RJKZE6YZ0TSYGF","source-checkout-allowed","Valid source-checkout-only fixture.","https:\u002F\u002Fgithub.com\u002FGeorgeQLe\u002Fagentic-skills\u002Fblob\u002Fmaster\u002Ftests\u002Ffixtures\u002Fskill-install-routing\u002Fvalid\u002Fsource-checkout-allowed\u002FSKILL.md",[],[70,71,72,73,29,74],"source checkout allowed","checkout","fixture","only","valid",{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":30},"01M6G0NFZ3R1MNB1E3DVTM0WB7","deck-install-valid","Valid deck install fixture.","https:\u002F\u002Fgithub.com\u002FGeorgeQLe\u002Fagentic-skills\u002Fblob\u002Fmaster\u002Ftests\u002Ffixtures\u002Fskill-install-routing\u002Fvalid\u002Fdeck-install\u002FSKILL.md",[],[82,83,84,74,72,29],"deck install valid","deck","install",{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":30},"01M6G0ND3QZQC4MDZ9NVB97PT2","codex-pack-guard-valid","Valid Codex Pack Availability Guard fixture.","https:\u002F\u002Fgithub.com\u002FGeorgeQLe\u002Fagentic-skills\u002Fblob\u002Fmaster\u002Ftests\u002Ffixtures\u002Fskill-install-routing\u002Fvalid\u002Fcodex-pack-guard\u002FSKILL.md",[],[92,93,94,74,95,96,72,29],"codex pack guard valid","pack","guard","codex","availability",{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":30},"01M6G0NA9YB3NKGZKD3S96JMNB","codex-missing-skill-valid","Valid Codex missing skill fallback fixture.","https:\u002F\u002Fgithub.com\u002FGeorgeQLe\u002Fagentic-skills\u002Fblob\u002Fmaster\u002Ftests\u002Ffixtures\u002Fskill-install-routing\u002Fvalid\u002Fcodex-missing-skill-fallback\u002FSKILL.md",[],[104,105,74,95,29,106,72],"codex missing skill valid","missing","fallback",{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":30},"01M6G0N7PC0EKFD40ZWQAXSAQ9","codex-base-skill-fallback-valid","Valid Codex base skill fallback fixture.","https:\u002F\u002Fgithub.com\u002FGeorgeQLe\u002Fagentic-skills\u002Fblob\u002Fmaster\u002Ftests\u002Ffixtures\u002Fskill-install-routing\u002Fvalid\u002Fcodex-base-skill-fallback\u002FSKILL.md",[],[74,95,106,114,115,116,29,72],"base skill","codex base skill fallback valid","base",{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":30},"01M6G0N4VRR2YKZQ6N3Y6S2BQA","claude-pack-guard-valid","Valid Claude Pack Availability Guard fixture.","https:\u002F\u002Fgithub.com\u002FGeorgeQLe\u002Fagentic-skills\u002Fblob\u002Fmaster\u002Ftests\u002Ffixtures\u002Fskill-install-routing\u002Fvalid\u002Fclaude-pack-guard\u002FSKILL.md",[],[74,94,93,124,96,29,72],"claude pack guard valid"]