[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6D39F3JV3MF10DHKY7YPETC":3,"skill-same:01M6D39F3JV3MF10DHKY7YPETC":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},"01M6D39F3JV3MF10DHKY7YPETC","css-transitions",null,"CSS transitions and keyframe animation guardrails — transition\u002Fanimation properties, will-change, class-based sequencing","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\u002Fcss-transitions\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29],"css","transitions","css transitions","design","change","planning","Guardrails","Animation","planner","v0","properties","2026-11-10 10:12:30",false,"---\nname: css-transitions\ndescription: CSS transitions and keyframe animation guardrails — transition\u002Fanimation properties, will-change, class-based sequencing\ntype: planning\nversion: v0.0\ninvocation: sub-skill\nparent: animation-design-planner\n---\n\n# CSS Transitions Implementation Guardrails\n\nThis subskill provides CSS transition and keyframe animation guardrails for step 5 of `\u002Fanimation-design-planner`. It is invoked automatically when the parent detects CSS-based animation patterns 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### Sequencing and orchestration\n\n- Use `transition` for two-state toggles; use `@keyframes animation` for multi-waypoint or looping motion.\n- Chain sequences via `transitionend`\u002F`animationend` — always filter by `propertyName` or `animationName` because shorthand declarations fire one event per sub-property.\n- Stagger children via `animation-delay` combined with a CSS custom property per child (e.g. `--i`), not JS `setTimeout`.\n- Class toggle order: apply in the same frame. If phase B depends on phase A completing, chain via the end event — do not assume matching durations.\n\n### `will-change` lifecycle\n\n- Apply `will-change` just before the animation starts and remove it after the animation ends.\n- Permanent `will-change` forces a compositor layer and creates a new stacking context — document explicitly if intentionally kept.\n- Never use `will-change: contents` or `will-change: scroll-position` speculatively.\n\n### Forced reflow and paint triggers\n\n- The reflow trap: reading a layout property then writing a style in the same synchronous block forces synchronous layout. Batch reads before writes.\n- Void-to-value trick: force a reflow between DOM insertion and class addition with `el.offsetHeight` to ensure the browser registers the initial state before animating.\n- Double-rAF pattern (`requestAnimationFrame(() => requestAnimationFrame(() => { ... }))`) for maximum reliability on enter transitions when the single-frame trick is insufficient.\n\n### Exit animation patterns\n\n- CSS has no animate-then-remove primitive: add an exit class, listen for the end event, then remove the element from the DOM.\n- Race guard — the end event never fires if the property isn't actually transitioning. Always set a `setTimeout` fallback matching the expected duration.\n- Race guard — shorthand fires per sub-property. Filter by `propertyName` or designate a single canonical property for the event listener.\n- Use `animation-fill-mode: forwards` to hold the final state while DOM removal runs. Remove the element promptly — do not rely on `forwards` indefinitely as it holds the compositor layer.\n\n### Proof expectations\n\n- `transitionend` fires exactly once for the intended property on each transition.\n- Rapid toggle (open\u002Fclose, show\u002Fhide) produces no stuck mid-animation states.\n- `will-change` is removed after completion (verify in DevTools Layers panel).\n- `prefers-reduced-motion: reduce` suppresses or collapses all motion.\n- Slow-motion review (set durations to 2–3s) confirms sequencing matches the animation contract.\n","# CSS Transitions Implementation Guardrails\n\nThis subskill provides CSS transition and keyframe animation guardrails for step 5 of `\u002Fanimation-design-planner`. It is invoked automatically when the parent detects CSS-based animation patterns 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### Sequencing and orchestration\n\n- Use `transition` for two-state toggles; use `@keyframes animation` for multi-waypoint or looping motion.\n- Chain sequences via `transitionend`\u002F`animationend` — always filter by `propertyName` or `animationName` because shorthand declarations fire one event per sub-property.\n- Stagger children via `animation-delay` combined with a CSS custom property per child (e.g. `--i`), not JS `setTimeout`.\n- Class toggle order: apply in the same frame. If phase B depends on phase A completing, chain via the end event — do not assume matching durations.\n\n### `will-change` lifecycle\n\n- Apply `will-change` just before the animation starts and remove it after the animation ends.\n- Permanent `will-change` forces a compositor layer and creates a new stacking context — document explicitly if intentionally kept.\n- Never use `will-change: contents` or `will-change: scroll-position` speculatively.\n\n### Forced reflow and paint triggers\n\n- The reflow trap: reading a layout property then writing a style in the same synchronous block forces synchronous layout. Batch reads before writes.\n- Void-to-value trick: force a reflow between DOM insertion and class addition with `el.offsetHeight` to ensure the browser registers the initial state before animating.\n- Double-rAF pattern (`requestAnimationFrame(() => requestAnimationFrame(() => { ... }))`) for maximum reliability on enter transitions when the single-frame trick is insufficient.\n\n### Exit animation patterns\n\n- CSS has no animate-then-remove primitive: add an exit class, listen for the end event, then remove the element from the DOM.\n- Race guard — the end event never fires if the property isn't actually transitioning. Always set a `setTimeout` fallback matching the expected duration.\n- Race guard — shorthand fires per sub-property. Filter by `propertyName` or designate a single canonical property for the event listener.\n- Use `animation-fill-mode: forwards` to hold the final state while DOM removal runs. Remove the element promptly — do not rely on `forwards` indefinitely as it holds the compositor layer.\n\n### Proof expectations\n\n- `transitionend` fires exactly once for the intended property on each transition.\n- Rapid toggle (open\u002Fclose, show\u002Fhide) produces no stuck mid-animation states.\n- `will-change` is removed after completion (verify in DevTools Layers panel).\n- `prefers-reduced-motion: reduce` suppresses or collapses all motion.\n- Slow-motion review (set durations to 2–3s) confirms sequencing matches the animation contract.\n",{"name":5,"type":24,"parent":35,"version":36,"invocation":37,"description":7},"animation-design-planner","v0.0","sub-skill","master","96e2912af886dd1606b1b97df707715aef062b02","packs\u002Fbase\u002Fclaude\u002Fanimation-design-planner\u002Fframeworks\u002Fcss-transitions",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 css-transitions",{"tool":54,"command":55},"bunx","bunx skills add GeorgeQLe\u002Fagentic-skills --skill css-transitions",{"tool":57,"command":58},"pnpm","pnpm dlx skills add GeorgeQLe\u002Fagentic-skills --skill css-transitions","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FGeorgeQLe\u002Fagentic-skills\u002Fblob\u002Fmaster\u002Fpacks\u002Fbase\u002Fclaude\u002Fanimation-design-planner\u002Fframeworks\u002Fcss-transitions\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,28,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,28],"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,28],"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,28,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,28,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,28,72],"claude pack guard valid"]