[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6D3P9ZNEV019Z5SN8QF7JEE":3,"skill-same:01M6D3P9ZNEV019Z5SN8QF7JEE":89},{"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":23,"publishedAt":35,"linkOnly":36,"markdownContent":37,"markdownBody":38,"frontMatter":39,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":48,"ownerHtmlUrl":49,"ownerBlogUrl":50,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M6D3P9ZNEV019Z5SN8QF7JEE","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\u002Fcodex\u002Fanimation-design-planner\u002Fframeworks\u002Fcss-transitions\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000009","前端开发","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34],"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\nInvoke as `$animation-design-planner frameworks\u002Fcss-transitions`.\n\nThis subskill provides CSS transition and keyframe animation guardrails for step 5 of `$animation-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\nInvoke as `$animation-design-planner frameworks\u002Fcss-transitions`.\n\nThis subskill provides CSS transition and keyframe animation guardrails for step 5 of `$animation-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":29,"parent":40,"version":41,"invocation":42,"description":7},"animation-design-planner","v0.0","sub-skill","master","96e2912af886dd1606b1b97df707715aef062b02","packs\u002Fbase\u002Fcodex\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":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add GeorgeQLe\u002Fagentic-skills --skill css-transitions",{"tool":59,"command":60},"bunx","bunx skills add GeorgeQLe\u002Fagentic-skills --skill css-transitions",{"tool":62,"command":63},"pnpm","pnpm dlx skills add GeorgeQLe\u002Fagentic-skills --skill css-transitions","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FGeorgeQLe\u002Fagentic-skills\u002Fblob\u002Fmaster\u002Fpacks\u002Fbase\u002Fcodex\u002Fanimation-design-planner\u002Fframeworks\u002Fcss-transitions\u002FSKILL.md",true,[67,73,77,81,85],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"scripts\u002Fdraw_gc_content.py","SCRIPT","脚本",4237,"https:\u002F\u002Fgithub.com\u002Ffadrienne\u002FMyGitHub\u002Fblob\u002Fmain\u002Fopenscience\u002Fbackend\u002Fcli\u002Fskills\u002Fvisualization\u002Fdna-visualization\u002Fscripts\u002Fdraw_gc_content.py",{"path":74,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":75,"sourceHtmlUrl":76},"scripts\u002Fdraw_gene_map.py",4609,"https:\u002F\u002Fgithub.com\u002Ffadrienne\u002FMyGitHub\u002Fblob\u002Fmain\u002Fopenscience\u002Fbackend\u002Fcli\u002Fskills\u002Fvisualization\u002Fdna-visualization\u002Fscripts\u002Fdraw_gene_map.py",{"path":78,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":79,"sourceHtmlUrl":80},"scripts\u002Fdraw_plasmid.py",4078,"https:\u002F\u002Fgithub.com\u002Ffadrienne\u002FMyGitHub\u002Fblob\u002Fmain\u002Fopenscience\u002Fbackend\u002Fcli\u002Fskills\u002Fvisualization\u002Fdna-visualization\u002Fscripts\u002Fdraw_plasmid.py",{"path":82,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":83,"sourceHtmlUrl":84},"scripts\u002Fdraw_restriction_map.py",4978,"https:\u002F\u002Fgithub.com\u002Ffadrienne\u002FMyGitHub\u002Fblob\u002Fmain\u002Fopenscience\u002Fbackend\u002Fcli\u002Fskills\u002Fvisualization\u002Fdna-visualization\u002Fscripts\u002Fdraw_restriction_map.py",{"path":86,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":87,"sourceHtmlUrl":88},"scripts\u002Fdraw_sequence_logo.py",4689,"https:\u002F\u002Fgithub.com\u002Ffadrienne\u002FMyGitHub\u002Fblob\u002Fmain\u002Fopenscience\u002Fbackend\u002Fcli\u002Fskills\u002Fvisualization\u002Fdna-visualization\u002Fscripts\u002Fdraw_sequence_logo.py",[90,102,112,124,137,148],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":35},"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",[],[97,98,99,100,33,101],"source checkout allowed","checkout","fixture","only","valid",{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":35},"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",[],[109,110,111,101,99,33],"deck install valid","deck","install",{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":35},"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",[],[119,120,121,101,122,123,99,33],"codex pack guard valid","pack","guard","codex","availability",{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":133,"publishedAt":35},"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",[130],{"categoryNo":131,"categoryName":132,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[134,135,101,122,33,136,99],"codex missing skill valid","missing","fallback",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":144,"publishedAt":35},"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",[143],{"categoryNo":131,"categoryName":132,"taxonomyType":21,"taxonomyTypeDesc":22},[101,122,136,145,146,147,33,99],"base skill","codex base skill fallback valid","base",{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":154,"publishedAt":35},"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",[],[101,121,120,155,123,33,99],"claude pack guard valid"]