Communitygithub.com

hanimaru1121/animation-implementer

이 스킬은 `ui-microinteraction-designer`에서 생성된 인터랙션 명세를 실제 실행 코드에 연결하여, 각 명세에 가장 적합한 라이브러리(단순 hover는 Vanilla CSS, 복잡한 스크롤 안무는 GSAP, 뷰포트 진입 시 reveal은 AOS, React는 Framer Motion)로 구현하고, `prefers-reduced-motion`을 항상 존중하며 `transform`/`opacity`만 사용하여 60fps를 달성합니다.

animation-implementer란 무엇인가요?

이 스킬은 디자인 의도를 실제 모션으로 연결하는 브릿지 역할을 합니다. `ui-microinteraction-designer`가 생성한 각 인터랙션 명세(호버 리프트, 스크롤 리빌, 패럴랙스, 카운터, 스태거, 마그네틱 버튼, 마키 등)에 대해 가장 적합한 라이브러리를 선택하고 구현합니다. 라이브러리 선택 기준은 명확합니다: 단순 hover/focus와 전환 효과는 Vanilla CSS(의존성 제로, 최고 속도), 간단한 '뷰포트 진입 시 페이드 업'은 AOS(~3KB, 설치 용이), 복잡한 스크롤 안무나 타임라인 오케스트레이션은 GSAP(가장 강력하지만 필요할 때만), React Client Component의 경우 Framer Motion(선언적, React 상태와 통합)을 사용합니다. HTML과 Next.js 두 가지 코드 경로를 모두 지원하며, 모든 애니메이션은 GPU가 재계산 없이 합성할 수 있는 `transform`과 `opacity`만 사용하여 60fps를 달성하고, `prefers-reduced-motion`을 철저히 존중합니다. 총 9단계의 프로세스를 통해 상호작용 명세 검증, 라이브러리 결정 및 설치, 각 명세 구현, 60fps 규율 적용, 접근성 존중, 회귀 테스트, 그리고 상세한 애니메이션 보고서 생성까지 수행합니다. 이 스킬은 `lp-maker` 오케스트레이터가 Tier 4에 도달했을 때 또는 사용자가 "アニメーション実装して", "wire up animations", "GSAP入れて" 등과 같은 명령을 내릴 때 실행됩니다.

지원 대상✓Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/hanimaru1121/claude-skills/tree/HEAD/plugins/lp-maker/skills/animation-implementer

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

animation-implementer은(는) 무엇을 하나요?

이 스킬은 의도와 모션 사이의 브릿지입니다. ui-microinteraction-designer는 모든 인터랙션(호버 리프트, 스크롤 리빌, 패럴랙스, 카운터, 스태거, 마그네틱 버튼, 마키 등)에 대한 명세를 생성했으며, 여기에는 모션 매개변수(지속 시간, 이징, 거리, 트리거)가 포함됩니다. lp-coder-html / lp-coder-nextjs는 기본 JS 구현을 제공했지만 가장 단순한 인터랙션만 처리했으며, 복잡한 안무는 실제 라이브러리가 필요합니다. 이 스킬은 각 명세에 적합한 라이브러리를 선택하고, 각각을 구현하며, 페이지가 여전히 prefers-reduced-motion을 존중하고 transform/opacity(GPU가 레이아웃을 재계산하지 않고 합성할 수 있는 유일한 두 CSS 속성임 — width, height, top, left, margin을 애니메이션하면 매 프레임마다 리플로우가 발생하여 fps가 저하됨)만 애니메이션하는지 확인합니다.

라이브러리 선택 기준: hover/focus 및 단순 전환에는 Vanilla CSS(의존성 없음, 가장 빠름), 간단한 "섹션이 뷰포트에 진입할 때 페이드 업"에는 AOS(~3KB, 설치 간편), 복잡한 스크롤 안무 또는 타임라인 오케스트레이션에는 GSAP(가장 강력, ~30KB이지만 필요할 때 가치 있음), Next.js 경로의 React Client Component에는 Framer Motion(선언적, React 상태와 통합, ~50KB이지만 컴포넌트 라이프사이클을 존중하는 React 애니메이션에 필수)을 사용합니다.

이 스킬을 사용해야 하는 경우

다음과 같은 경우 이 스킬을 실행합니다:

  • lp-workspace/03-design/interactions.json이 존재할 때
  • lp-workspace/04-implementation/html/ 또는 nextjs/에 구현이 존재할 때
  • 오케스트레이터가 lp-coder-* 이후 Tier 4에 도달했을 때
  • 사용자가 "アニメーション実装して" / "wire up animations" / "GSAP入れて" / "scroll reveal を動かして"라고 말할 때

다음과 같은 경우 이 스킬을 사용하지 마십시오:

  • interactions.json이 존재하지 않을 때 — 먼저 ui-microinteraction-designer로 라우팅
  • 구현이 존재하지 않을 때 — 먼저 lp-coder-*로 라우팅
  • 사용자가 새로운 인터랙션을 디자인하려 할 때 (이는 ui-microinteraction-designer의 역할)
  • 사용자가 접근성 감사만 원할 때 (a11y-auditor로 라우팅)

입력값

필수:

  1. lp-workspace/03-design/interactions.json — 인터랙션별 명세. 각 항목에는 id, target(선택자 또는 섹션 ID), type(예: "fade-up", "parallax", "hover-lift", "counter", "stagger"), library(권장), 그리고 모션 매개변수(duration, easing, distance, delay, trigger)가 있어야 합니다. 이유: 이 스킬은 구현만 하며, 모션을 재디자인하지 않습니다.
  2. lp-workspace/04-implementation/html/ 또는 nextjs/ — 편집할 파일.

선택 사항: 3. lp-workspace/03-design/design-tokens.json — 모션 토큰(이징 곡선, 지속 시간 스케일)용. 4. lp-workspace/02-strategy/ia.json — 대상 해석을 위한 섹션 ID.

필수 입력값 중 하나라도 누락된 경우, 중단합니다:

アニメーション実装には以下が必要です:
- lp-workspace/03-design/interactions.json [✓ or 不足 → ui-microinteraction-designer]
- lp-workspace/04-implementation/html/ or nextjs/ [✓ or 不足 → lp-coder-html or lp-coder-nextjs]

프로세스

1단계. 업스트림 검증 및 대상 감지

interactions.json을 읽습니다. 구현이 HTML(04-implementation/html/index.html 존재)인지 Next.js(04-implementation/nextjs/app/page.tsx 존재)인지 감지합니다. 일치하는 코드 경로를 선택합니다.

2단계. 인터랙션별 라이브러리 결정

interactions.json의 각 인터랙션에 대해 다음 표에 따라 라이브러리를 선택합니다:

인터랙션 유형HTML 대상 → 라이브러리Next.js 대상 → 라이브러리
hover-lift, hover-tilt, focus-glow, button-pressVanilla CSS (:hover, :focus-visible)Tailwind 유틸리티를 통한 Vanilla CSS
fade-up, fade-in, slide-up (뷰포트 진입 시)AOS (data-aos="fade-up")Framer Motion whileInView
stagger-children (뷰포트 진입 시)GSAP ScrollTriggerFramer Motion variants + stagger
parallax, scrub, pin (스크롤 기반 안무)GSAP ScrollTriggerGSAP ScrollTrigger (Client Component)
counter (0 → 대상 숫자)Vanilla JS IntersectionObserver + rAFVanilla JS 또는 Framer Motion animate()
marquee, infinite-scrollVanilla CSS @keyframes (저렴함)Vanilla CSS
magnetic-button, 커서 효과Vanilla JS (소형)Vanilla JS
page-load entranceVanilla CSS + 소형 JS 클래스 토글레이아웃 수준의 Framer Motion
복잡한 타임라인 (순차적, 안무)GSAP timelineGSAP timeline (Client Component)

명세에 이미 library가 명시되어 있다면, 플랫폼과 충돌하지 않는 한 해당 라이브러리를 사용합니다(예: React에서 AOS — Framer Motion으로 대체하고 보고서에 기록).

WHY 차별화: 모든 라이브러리는 바이트와 학습 표면을 추가합니다. 호버 효과는 라이브러리가 전혀 필요 없습니다. 리빌은 하나의 작은 라이브러리로 수행할 수 있습니다. 복잡한 안무만이 GSAP을 정당화합니다.

3단계. 라이브러리 설치 또는 연결

HTML 경로:

  • <head>에서 CDN을 통한 AOS:
    <link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/aos.css">
    <script src="https://unpkg.com/[email protected]/dist/aos.js" defer></script>
    
    scripts/main.js 끝에서 초기화:
    AOS.init({
      duration: 600,
      easing: 'ease-out',
      once: true,
      disable: () => window.matchMedia('(prefers-reduced-motion: reduce)').matches,
    });
    
  • CDN을 통한 GSAP:
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/gsap.min.js" defer></script>
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/ScrollTrigger.min.js" defer></script>
    
    scripts/main.js에서 등록 및 사용:
    if (!window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
      gsap.registerPlugin(ScrollTrigger);
      // ...타임라인
    }
    

Next.js 경로:

  • Framer Motion: lp-coder-nextjs에 따라 이미 package.json에 있음. components/interactions/에서 인터랙션 프리미티브를 래핑.
  • GSAP: package.json(gsap)에 추가, Client Components('use client') 내에서 사용, useEffect 내부에서 ScrollTrigger를 등록하여 클라이언트 측에서만 실행되도록 함.
  • AOS: Next.js에서는 사용하지 않음 — 대신 Framer Motion whileInView 사용.

4단계. 각 명세 구현

각 인터랙션에 대해 적절한 파일을 편집합니다. 예시:

카드에 호버 리프트 (HTML, Vanilla CSS):

<!-- 이전 -->
<article class="bg-white rounded-lg shadow-md p-6">
<!-- 이후 -->
<article class="bg-white rounded-lg shadow-md p-6 transition-transform transition-shadow duration-200 ease-out hover:-translate-y-1 hover:shadow-lg motion-reduce:hover:transform-none motion-reduce:hover:shadow-md">

WHY motion-reduce: 변형: Tailwind는 즉시 사용 가능한 이러한 변형을 제공합니다. 사용자가 모션 감소를 선호할 때 모션을 중화합니다. 맞춤 CSS 주변의 미디어 쿼리보다 깔끔합니다.

뷰포트 진입 시 페이드 업 (HTML, AOS):

<section id="benefits" data-aos="fade-up" data-aos-delay="0">
  <div data-aos="fade-up" data-aos-delay="100">...</div>
  <div data-aos="fade-up" data-aos-delay="200">...</div>
</section>

스태거 리빌 (HTML, GSAP):

if (!window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
  gsap.from('#benefits .benefit-card', {
    scrollTrigger: { trigger: '#benefits', start: 'top 80%' },
    opacity: 0,
    y: 24,
    duration: 0.6,
    stagger: 0.08,
    ease: 'power2.out',
  });
}

히어로 이미지 패럴랙스 (HTML, GSAP):

if (!window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
  gsap.to('#hero img', {
    scrollTrigger: {
      trigger: '#hero',
      start: 'top top',
      end: 'bottom top',
      scrub: true,
    },
    yPercent: 30,
    ease: 'none',
  });
}

카운터 (HTML, 바닐라):

function animateCounter(el, target, duration = 1200) {
  if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
    el.textContent = String(target);
    return;
  }
  const start = performance.now();
  function tick(now) {
    const t = Math.min(1, (now - start) / duration);
    el.textContent = Math.round(target * (1 - Math.pow(1 - t, 3))).toString();
    if (t < 1) requestAnimationFrame(tick);
  }
  requestAnimationFrame(tick);
}
const io = new IntersectionObserver((entries) => {
  for (const e of entries) {
    if (e.isIntersecting) {
      animateCounter(e.target, parseInt(e.target.dataset.counter || '0'));
      io.unobserve(e.target);
    }
  }
});
document.querySelectorAll('[data-counter]').forEach((el) => io.observe(el));

리빌 래퍼 (Next.js, Framer Motion):

'use client';
import { motion, useReducedMotion } from 'framer-motion';
import { ReactNode } from 'react';

export function Reveal({ children, delay = 0 }: { children: ReactNode; delay?: number }) {
  const reduced = useReducedMotion();
  if (reduced) return <>{children}</>;
  return (
    <motion.div
      initial={{ opacity: 0, y: 24 }}
      whileInView={{ opacity: 1, y: 0 }}
      viewport={{ once: true, margin: '-10%' }}
      transition={{ duration: 0.5, delay, ease: [0.2, 0.8, 0.2, 1] }}
    >
      {children}
    </motion.div>
  );
}

5단계. 60fps 규율 적용

모든 애니메이션에 대해 다음을 확인합니다:

  • 애니메이션된 CSS 속성은 오직 transform(translate, scale, rotate, skew) 또는 opacity여야 함. 절대 width, height, top, left, right, bottom, margin, padding, font-size, border-radius를 사용하지 않음. 이유: transform과 opacity만이 GPU가 레이아웃이나 페인트를 재실행하지 않고 합성할 수 있습니다. 다른 모든 것은 매 프레임마다 리플로우를 트리거합니다.
  • will-change: transform, opacity는 무거운 애니메이션이 실행되는 곳에만 추가되고 완료 후 제거됩니다(페이지 전체에 남발하지 마십시오 — will-change는 요소마다 레이어를 할당합니다).
  • 스크롤 기반 애니메이션에 scroll 이벤트 리스너를 사용하지 않음 — IntersectionObserver 또는 GSAP ScrollTrigger를 사용합니다.
  • 프레임 애니메이션에 setInterval을 사용하지 않음 — requestAnimationFrame을 사용합니다.

명세가 합성 불가능한 속성(예: 아코디언 확장을 위한 height 애니메이션)을 애니메이션해야 하는 경우, transform: scaleY() + transform-origin: top으로 대체하고 외부 레이아웃을 조정하거나 비용을 감수하고 플래그를 지정합니다.

6단계. prefers-reduced-motion을 모든 곳에서 존중

이것은 협상 불가능합니다:

  • WCAG 2.3.3: 사용자의 모션 선호도를 존중해야 합니다.
  • CSS 기반 애니메이션을 위한 Tailwind motion-reduce: 변형.
  • JS 애니메이션 주변의 window.matchMedia('(prefers-reduced-motion: reduce)') 가드.
  • 미디어 쿼리로 설정된 AOS disable 콜백.
  • Framer Motion useReducedMotion() 훅.
  • GSAP: 미디어 쿼리 가드로 타임라인을 래핑.

WHY 무관용: 전정 장애가 있는 사용자는 패럴랙스와 공격적인 움직임에 물리적으로 메스꺼움을 느낄 수 있습니다. 이것은 단순한 개선 사항이 아니라 피해 감소입니다.

7단계. 회귀 없음 확인

모든 편집 후:

  • console.error가 도입되지 않았는지 확인합니다(예: GSAP 플러그인이 등록되지 않음).
  • JS 없이도 콘텐츠에 대해 페이지가 여전히 작동하는지 확인합니다(정적 HTML이 동일한 페인트에 도달).
  • 포커스, FAQ, 양식, 탐색이 여전히 작동하는지 확인합니다.
  • 중요한 CSS 경로가 크게 증가하지 않았는지 확인합니다.

8단계. 애니메이션 보고서 작성

lp-workspace/05-optimization/animation-report.json을 작성합니다:

{
  "implementedAt": "2026-05-29T..",
  "platform": "html",
  "interactionsImplemented": 12,
  "librariesUsed": {
    "vanilla-css": 5,
    "aos": 4,
    "gsap": 3,
    "framer-motion": 0
  },
  "items": [
    {
      "id": "hero-headline-fade",
      "type": "fade-up",
      "target": "#hero h1",
      "library": "aos",
      "params": { "duration": 600, "easing": "ease-out", "delay": 0 },
      "status": "implemented",
      "compositableOnly": true,
      "reducedMotionRespected": true
    }
    // ...인터랙션당 하나의 항목
  ],
  "warnings": [
    {
      "id": "accordion-expand",
      "issue": "spec requested height animation; substituted scaleY for 60fps",
      "decision": "auto-substituted"
    }
  ]
}

lp-workspace/05-optimization/이 존재하는지 확인합니다. 이전 보고서를 .backup에 백업합니다.

9단계. 결과 보고

アニメーション実装が完了しました:
実装件数: [N] 件
使用ライブラリ:
- Vanilla CSS: [N] 件 (hover, focus)
- AOS: [N] 件 (in-view fade)
- GSAP ScrollTrigger: [N] 件 (parallax, stagger choreography)
- (Next.jsの場合) Framer Motion: [N] 件
prefers-reduced-motion: 全件で尊重
60fpsチェック: transform/opacity のみで構成

修正ファイル: lp-workspace/04-implementation/{html or nextjs}/
レポート: lp-workspace/05-optimization/animation-report.json

次のステップ: performance-optimizer / a11y-auditor / cross-browser-tester

출력

수정된 파일: lp-workspace/04-implementation/html/* 또는 lp-workspace/04-implementation/nextjs/**/* (애니메이션을 연결하기 위한 직접 편집).

작성된 파일: lp-workspace/05-optimization/animation-report.json — 명세별 구현 로그.

품질 검사

완료를 선언하기 전:

  • interactions.json의 모든 인터랙션이 구현되거나 이유와 함께 플래그 지정되었는지 확인
  • 모든 애니메이션이 오직 transform 및/또는 opacity만 대상으로 하는지 확인(width, height, top, left 등 없음)
  • 모든 JS 애니메이션, AOS init, GSAP 타임라인 및 Framer Motion 컴포넌트(또는 Tailwind motion-reduce: 변형을 통해)에서 prefers-reduced-motion: reduce가 존중되는지 확인
  • scroll 이벤트 리스너가 없는지 확인(IntersectionObserver 또는 ScrollTrigger 사용)
  • 애니메이션에 setInterval이 없는지 확인(requestAnimationFrame 사용)
  • will-change가 드물게 설정되었는지 확인(활성 애니메이션 요소에만, 완료 시 제거)
  • 새로운 콘솔 오류가 도입되지 않았는지 확인
  • FAQ, 양식, 탐색, 포커스 링이 여전히 작동하는지 확인
  • 라이브러리 스크립트가 지연되었는지 확인(HTML의 defer 속성; React의 'use client')
  • 보고서 JSON이 유효하고 명세당 하나의 항목이 있는지 확인

검사에 실패하면 성공을 보고하지 말고 수정하십시오.

참조

  • ${CLAUDE_PLUGIN_ROOT}/skills/lp-maker/references/workspace-schema.md
  • skills/ui-microinteraction-designer/SKILL.md — 업스트림; 명세 출처
  • skills/lp-coder-html/SKILL.md, skills/lp-coder-nextjs/SKILL.md — 업스트림; 수정 중인 코드
  • skills/responsive-optimizer/SKILL.md — 형제
  • skills/a11y-auditor/SKILL.md — 형제; 축소된 모션 존중 확인
  • skills/performance-optimizer/SKILL.md — 다운스트림; Core Web Vitals 영향 측정

Individual skills in this repo

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

hanimaru1121/image-asset-generator

This skill should be used when the user wants the actual image files for the landing page generated and placed in the implementation folder — based on the specs from `image-asset-planner`. If the user has an image generation MCP (DALL-E, Imagen, Stable Diffusion, Midjourney bridge) it calls that; otherwise produces a usable placeholder (labeled SVG with correct dimensions, or a CSS gradient with text). Triggers include "画像生成して", "画像を作って", "ヒーロー画像", "OG画像作成", "generate images", "create hero image", "make placeholder images", "image assets", "画像アセット", or when the orchestrator (`lp-maker`) reaches Tier 4. Note that founder/customer/real-person portraits MUST NOT be AI-generated and are flagged for the user to provide real photos. Make sure to use this skill whenever the LP has image slots that need files, so `lp-coder-*` can reference real paths.

hanimaru1121/image-asset-planner

This skill should be used when the user wants a complete spec list of every image, illustration, and icon the LP needs — file names, exact dimensions (1x/2x/3x), formats, purposes, alt text, and ready-to-paste generative-AI prompts for Midjourney/DALL·E/Imagen/Adobe Firefly. Triggers include "画像仕様", "image plan", "画像リスト", "画像プロンプト", "AI画像", "Midjourneyプロンプト", "image spec", "what images do we need", "ヒーロー画像どうする", "アイコン仕様", or when the orchestrator (`lp-maker`) reaches Tier 3 Step 4. It reads `02-strategy/ia.json`, `02-strategy/copy.json`, and `03-design/design-tokens.json`, and writes `03-design/image-spec.json`. Make sure to use this skill BEFORE `image-asset-generator` in Tier 4 — without specs, generation is random and brand-inconsistent. Every needed image is enumerated so generation can be batched.

hanimaru1121/visual-mockup-designer

This skill should be used when the user wants a high-fidelity, openable HTML+Tailwind mockup of the entire landing page — colors applied from design tokens, real copy from `copy.json`, placeholder images sized correctly, and all sections from IA visible end-to-end. Triggers include "モックアップ", "mockup", "モックアップ作って", "プレビュー", "preview", "high-fidelity comp", "デザインカンプ", "デザイン案", "ビジュアル案見せて", or when the orchestrator (`lp-maker`) reaches Tier 3 Step 3. It reads `03-design/design-tokens.json`, `03-design/wireframe.svg`, `02-strategy/copy.json`, and `02-strategy/ia.json`, and writes a single-file `03-design/mockup.html` (CDN Tailwind, no build step) the user can open in any browser. This is NOT the final shippable code — it's a designed comp. Animations and interactions are marked with HTML comments for `ui-microinteraction-designer` and `animation-implementer` downstream. Make sure to use this skill whenever the user wants to "see what the LP would look like" BEFORE committing to production

관련 스킬