Communitygithub.com

ever-just/agentskills

アニメーションロゴ、アイコン、マイクロインタラクションを軽量なLottie JSONファイルとして作成します。After Effectsは不要で、コードのみでアニメーションを構築できます。

agentskills とは?

このスキルは、Lottie JSON形式(オープンスタンダード)を使用してプログラムでアニメーションを生成するためのものです。After Effectsのようなデザインツールに頼らず、コードのみでロゴアニメーション、アイコン、マイクロインタラクションを作成したい開発者に最適です。Lottieはベクターベースで解像度に依存せず、ファイルサイズが小さく、Web(lottie-web、@lottiefiles/lottie-player)、iOS、Android、React Nativeでネイティブ再生可能です。スキルは、Lottie JSONの構造(バージョン、フレームレート、レイヤー、シェイプ、トランスフォーム、イージング)、レイヤータイプ(プリコンポ、シェイプ、テキストなど)、シェイプタイプ(矩形、楕円、パス、塗り、線など)を詳細に説明し、JavaScriptによるプログラム生成関数や、Remotionでの使用例も提供します。ベストプラクティスとして、レイヤー数の最小化、シェイプレイヤーの使用、キーフレームイージングの適用、30fpsの推奨、短い持続時間(マイクロインタラクションは2秒未満、ロゴは3〜5秒)が挙げられています。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ever-just/agentskills/tree/HEAD/skills/lottie-animation

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Lottieアニメーション — プログラムによるJSONベースのアニメーション

アニメーションロゴ、アイコン、マイクロインタラクションを軽量なLottie JSONファイルとして作成します。After Effectsは不要で、コードのみでアニメーションを構築できます。

概要

  • 形式: Lottie JSON(オープンスタンダード)
  • プレイヤーリポジトリ: github.com/LottieFiles/lottie-player
  • エディタリポジトリ: github.com/marciogranzotto/lottie-tools(オープンソースWebエディタ)
  • ライセンス: MIT
  • インストール: npm install lottie-web または npm install @lottiefiles/lottie-player

Lottieとは

LottieはJSONベースのアニメーションフォーマットです。アニメーションは、構造化されたJSONファイル内のキーフレーム付きプロパティとして記述されます。ベクターベースで任意の解像度でレンダリングでき、ファイルサイズは非常に小さく、Web、iOS、Android、React Nativeでネイティブに再生されます。

Lottie JSONの構造

{
  "v": "5.7.1",          // Lottieバージョン
  "fr": 30,              // フレームレート
  "ip": 0,               // 開始フレーム
  "op": 60,              // 終了フレーム — 30fpsで2秒
  "w": 400,              // 幅
  "h": 400,              // 高さ
  "assets": [],          // 外部アセット(画像、プリコンポ)
  "layers": [            // アニメーションレイヤー(下から上)
    {
      "ty": 4,           // シェイプレイヤー
      "nm": "Circle",    // レイヤー名
      "ip": 0,
      "op": 60,
      "st": 0,           // 開始時間
      "ks": {            // トランスフォームプロパティ
        "o": { "a": 0, "k": 100 },           // 不透明度(静的)
        "r": { "a": 0, "k": 0 },             // 回転
        "p": {                                 // 位置(アニメーション)
          "a": 1,                              // a=1はアニメーションあり
          "k": [
            { "t": 0, "s": [200, 300], "e": [200, 100], "i": {"x": 0.5, "y": 1}, "o": {"x": 0.5, "y": 0} },
            { "t": 30, "s": [200, 100] }
          ]
        },
        "s": { "a": 0, "k": [100, 100] }     // スケール
      },
      "shapes": [...]    // シェイプ定義
    }
  ]
}

レイヤータイプ

tyタイプ説明
0プリコンポネストされたコンポジション
1ソリッド単色レイヤー
2画像画像アセットレイヤー
3ヌル空のトランスフォーム親
4シェイプベクターシェイプ(最も一般的)
5テキストテキストレイヤー

シェイプタイプ

tyシェイプ
"rc"矩形
"el"楕円
"sr"星/多角形
"sh"パス(ベジェ)
"fl"塗り
"st"線
"gf"グラデーション塗り
"gs"グラデーション線
"tr"トランスフォーム
"gr"グループ

コードでアニメーションを構築する

シンプルなフェードイン円

{
  "v": "5.7.1",
  "fr": 30,
  "ip": 0,
  "op": 30,
  "w": 200,
  "h": 200,
  "layers": [{
    "ty": 4,
    "nm": "circle",
    "ip": 0,
    "op": 30,
    "st": 0,
    "ks": {
      "o": {
        "a": 1,
        "k": [
          {"t": 0, "s": [0], "e": [100], "i": {"x": [0.4], "y": [1]}, "o": {"x": [0.6], "y": [0]}},
          {"t": 20, "s": [100]}
        ]
      },
      "r": {"a": 0, "k": 0},
      "p": {"a": 0, "k": [100, 100]},
      "s": {
        "a": 1,
        "k": [
          {"t": 0, "s": [0, 0], "e": [100, 100], "i": {"x": [0.2, 0.2], "y": [1, 1]}, "o": {"x": [0.8, 0.8], "y": [0, 0]}},
          {"t": 25, "s": [100, 100]}
        ]
      }
    },
    "shapes": [
      {
        "ty": "gr",
        "it": [
          {"ty": "el", "p": {"a": 0, "k": [0, 0]}, "s": {"a": 0, "k": [80, 80]}},
          {"ty": "fl", "c": {"a": 0, "k": [0.2, 0.5, 1, 1]}, "o": {"a": 0, "k": 100}},
          {"ty": "tr", "p": {"a": 0, "k": [0, 0]}, "s": {"a": 0, "k": [100, 100]}}
        ]
      }
    ]
  }]
}

キーフレームイージング

// イーズインアウト(スムーズ)
"i": {"x": [0.42], "y": [1]},
"o": {"x": [0.58], "y": [0]}

// イーズアウト(減速)
"i": {"x": [0.0], "y": [1]},
"o": {"x": [0.6], "y": [0]}

// イーズイン(加速)
"i": {"x": [0.4], "y": [1]},
"o": {"x": [1.0], "y": [0]}

// 線形
"i": {"x": [1], "y": [1]},
"o": {"x": [0], "y": [0]}

JavaScriptによるプログラム生成

function createLottieAnimation({ width, height, fps, durationFrames, layers }) {
  return {
    v: "5.7.1",
    fr: fps,
    ip: 0,
    op: durationFrames,
    w: width,
    h: height,
    assets: [],
    layers,
  };
}

function createShapeLayer({ name, startFrame, endFrame, shapes, transform }) {
  return {
    ty: 4,
    nm: name,
    ip: startFrame,
    op: endFrame,
    st: startFrame,
    ks: transform,
    shapes,
  };
}

// 生成して保存
const animation = createLottieAnimation({
  width: 400, height: 400, fps: 30, durationFrames: 60,
  layers: [/* ... */],
});

const fs = require("fs");
fs.writeFileSync("animation.json", JSON.stringify(animation, null, 2));

WebでLottieを再生する

<!-- CDN経由 -->
<script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script>
<lottie-player src="animation.json" background="transparent" speed="1" loop autoplay></lottie-player>
// npm経由
import lottie from "lottie-web";

const anim = lottie.loadAnimation({
  container: document.getElementById("lottie"),
  renderer: "svg",
  loop: true,
  autoplay: true,
  animationData: require("./animation.json"),
});

RemotionでLottieを使用する

import { Lottie } from "@remotion/lottie";
import animationData from "./animation.json";

export const MyScene: React.FC = () => {
  return <Lottie animationData={animationData} />;
};

インストール: npm install @remotion/lottie

ベストプラクティス

  1. シンプルに保つ — レイヤーが少ないほどファイルが小さく、パフォーマンスが向上します
  2. シェイプレイヤーを使用する — 可能な限り画像レイヤーよりもシェイプレイヤーを使用します(ベクターはどんなサイズでも鮮明)
  3. キーフレームをイージングする — 有機的な動きには線形イージングを使用しないでください
  4. 30fpsがWeb Lottieアニメーションの標準です
  5. マイクロインタラクションは2秒未満、ロゴは3〜5秒に抑えます
  6. lottie-playerでテストする — 埋め込む前にプレビューします
  7. 最適化する — 未使用のプロパティを削除し、数値の精度を最小限に抑えます

エージェントスキルソース

  • Wiggle(ロゴアニメーションスキル): github.com/talknerdytome-labs/wiggle-claude-skill
  • Lottie Tools(エディタ): github.com/marciogranzotto/lottie-tools
  • OmniLottie(AI生成): github.com/OpenVGLab/OmniLottie

Individual skills in this repo

This repo contains 9 individual skills — each has its own dedicated page.

ever-just/agentskills

> Declarative animations for React. Springs, gestures, layout animations, and page transitions. GPU-accelerated, production-ready.

ever-just/agentskills

> A TypeScript library using generators to program animations with a real-time editor. Ideal for explainer videos, code walkthroughs, and educational content.

ever-just/agentskills

> Add animated subtitles and captions to Remotion videos from .SRT files. TikTok-style word-by-word highlights, karaoke effects, and more.

ever-just/agentskills

> Create videos programmatically using React components. The most mature framework for code-driven video production.

ever-just/agentskills

> Copy-paste video components for Remotion. Intros, text effects, transitions, and full scene templates. Like shadcn/ui but for video.

ever-just/agentskills

Extract actionable intelligence from video content across YouTube, Vimeo, and company websites. Video reveals what text sources cannot: facility scale, team composition, product demonstrations, signage, event attendance, and operational reality.

ever-just/agentskills

Optimize and embed an existing video as a fast, crisp, autoplaying hero/background/loop on a website. Use when adding or replacing a video on a marketing site and it is too heavy, will not autoplay (especially on mobile/Safari), shows a codec error, or looks soft — to transcode it to web-safe H.264 with the right pixel format, faststart, retina-aware sizing, and a poster frame, then embed and verify it actually plays. This is optimization + embedding of footage you already have, not creating/animating a video (for that use remotion/moviepy/motion-canvas). Use when the user says "add this video to the site", "the hero video is too big / won't play / isn't crisp", "replace the homepage video", or "make this loop on the landing page".

ever-just/agentskills

Full conversion audit for any homepage or landing page. Use when someone asks to "review my homepage," "audit my landing page," "why isn't my page converting," "check my website," or wants feedback on their marketing page. Requires URL or screenshot before proceeding.

ever-just/agentskills

Automatically fetch YouTube video transcripts, generate structured summaries, and send full transcripts to messaging platforms. Detects YouTube URLs and provides metadata, key insights, and downloadable transcripts.

関連スキル