lottie-skottie-authoring-pitfalls
Skill0 starsChanged 5 months agoMITView on GitHub
text-to-lottie (diffusionstudio/lottie) スキルでLottieを手書きする時の落とし穴。背景矩形の二重オフセット、ブラウザ検証方法。アニメJSONがコンポ外に描画される/Chromeタブが落ちる時に発火。
In this repository99 other files it gives its agents.
- agents-tools-quoted-jsonSkill
- asc-api-app-store-submitSkill
- asd-ste100Skill
- automation-bool-selector-pitfallsSkill
- automation-stale-cooldown-flagSkill
- autonomous-build-verifySkill
- book-to-skillSkill
- ccusage-cli-cost-trackingSkill
- chrome-ext-mv3-programmatic-injectSkill
- chrome-ext-store-assetsSkill
- claude-headless-p-invocationSkill
- claude-plugin-context-auditSkill
- claude-session-log-to-kbSkill
- cloudflare-workers-do-deploySkill
- codebase-to-courseSkill
- codesign-keychain-prompt-fixSkill
- codex-cli-setupSkill
- codex-delegation-handoffSkill
- content-factory-grounding-dedupSkill
- conversation-log-append-patternSkill
- cron-to-launchd-macosSkill
- cross-automation-shared-resource-killSkill
- design-token-migration-rnSkill
- discord-bot-image-to-claudeSkill
- discord-gateway-resume-dedupSkill
- excel-filtered-url-http-auditSkill
- execution-budget-vs-capsSkill
- expo-free-local-ios-testflightSkill
- ga4-connect-projectsSkill
- gcal-oauth-desktop-setupSkill
- git-commit-helperSkill
- git-prepush-secret-remote-checkSkill
- gsc-cli-automationSkill
- hatena-blogsync-autopostSkill
- hook-latency-wrapSkill
- hook-log-append-patternSkill
- html-to-pdf-slide-deckSkill
- humanizerSkill
- human-review-gate-shellSkill
- implementation-model-routingSkill
- insights-to-claude-mdSkill
- ios-permission-key-security-matrixSkill
- ios-sim-store-screenshotsSkill
- launchd-exit78-exconfig-debugSkill
- llm-content-pipeline-quality-gateSkill
- local-ai-video-pipelineSkill
- local-flux-mflux-image-genSkill
- local-llm-slow-diagnosisSkill
- local-music-generationSkill
- machine-wide-api-ratelimit-latchSkill
- macos-hook-path-timeoutSkill
- md-to-docx-reportSkill
- memory-md-inject-bloat-auditSkill
- message-display-secrets-maskSkill
- metric-source-attributionSkill
- migrate-icloud-desktop-assetsSkill
- nextauth-local-e2e-sessionSkill
- nextjs-rsc-payload-slimSkill
- nothing-designSkill
- openclaw-ollama-setupSkill
- The first 60 shown.
The file
Files
Procedure
text-to-lottie プレイヤー(npx degit diffusionstudio/lottie <dir> でscaffold、Skia/Skottieレンダ)でLottieを書く時の確定手順。
public/lottie.jsonを書き、public/controls.jsonで slot にラベル付け(bgColor,ballColor等)。- 座標は「レイヤー
ks.p」+「シェイプ内p」が加算される。レイヤーを[256,256]に置いたら、その中の矩形/楕円のpは基本[0,0]にする。両方に256を入れると中心が[512,512](右下隅)にずれる。スキル同梱の背景サンプルはこの罠を踏んでいる(layer.p=256,256 かつ rc.p=256,256)→ rc.p を[0,0]に直す。 - スクワッシュ&ストレッチはレイヤーのアンカーをボール底に置く:楕円を
p:[0,-50](半径50)、layer.a=[0,0,0]。layer.s をキーフレームすると底が床に貼り付いたまま潰れる。中心アンカーだと地面にめり込む。 - 重力イージング: 頂点→着地は ease-in(
o.x:[0.5],o.y:[0]/i.x:[1],i.y:[1])、着地→頂点は ease-out(o:[0,0]/i:[0.5,1])。ループは最初と最後のキーフレーム値を一致させる。 - 検証は Playwright MCP で行う(理由は Pitfalls)。
http://localhost:5173/?frame=N&paused=1に navigate →browser_take_screenshot→ 保存先は~/<file>.png(.playwright-mcp/指定でもホーム直下に出ることがある。find ~ -name <file>.pngで探す)→ Read で目視。
Pitfalls
- claude-in-chrome のタブが生成直後に消えることがある(
tabs_context_mcp createIfEmpty:true→ navigate で "Tab no longer exists")。リトライ2回で復旧しなければ Playwright MCP に切り替える。Playwright はヘッドレスで安定し、?frame=ピン留めと組み合わせて確実にフレーム検証できる。 - JSON が valid でも見た目バグ(コンポ外描画)は出る。必ず実レンダリングを目視。頂点フレーム(0)と着地フレーム(op/2)の2枚を撮って位置・スクワッシュ・影を確認。
- シェイプは必ず
ty:"gr"グループのitに入れ、末尾にtr(恒等でも必須)。フラットだと真っ白。 - 色は 0–1 RGBA(0–255ではない)。
s値は常に配列(スカラーでも[360])。 - 全アニメに背景色コントロール必須:最終レイヤーにフルコンポ矩形+slotted fill(
bgColor)。
Verification
node -e "JSON.parse(require('fs').readFileSync('public/lottie.json','utf8'))"で構文チェック。- frame=0 と frame=op/2 のスクショ2枚で、対象オブジェクトがコンポ(背景矩形)内に収まっているか目視。背景が右下にずれていたら手順2の二重オフセット。
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.

