Communitygithub.com

Makepad 애니메이션 스킬

Makepad의 애니메이션 시스템을 위한 필수 스킬입니다. makepad 애니메이션, 애니메이터, 호버, 상태, 전환, 'from: { all: Forward', pressed 등의 키워드로 트리거됩니다.

Makepad 애니메이션 스킬란 무엇인가요?

이 스킬은 Makepad UI 프레임워크의 애니메이션 시스템을 전문적으로 다룹니다. 개발자가 Makepad 위젯에서 호버, 프레스, 포커스, 비활성화 상태 등 다양한 상태 기반 애니메이션을 구현할 수 있도록 코드 예제와 패턴을 제공합니다. 주요 기능으로는 Forward(선형 전환), Snap(즉시 전환), Loop(루프), BounceLoop(바운스 루프) 등 다양한 타이밍 유형과 20가지 이상의 이징 함수(Linear부터 Bounce, Bezier까지)를 지원합니다. 특히 Rust API를 통해 `animator_play()`, `animator_cut()` 함수로 애니메이션을 프로그래밍 방식으로 제어할 수 있습니다. 애니메이션 가능한 속성으로는 색상, 크기, 변환(scale, rotation), 불투명도 등이 있으며, 대부분의 draw_* 셰이더 uniform이 애니메이션 대상이 됩니다. 이 스킬은 makepad-widgets 라이브러리(dev 브랜치) 기반으로 설계되어 UI 개발자에게 직관적이고 강력한 애니메이션 솔루션을 제공합니다.

지원 대상✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Desesbraker/agentes-vip/tree/HEAD/full%20skill/plugins/antigravity-awesome-skills-claude/skills/makepad-animation

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

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

문서

Makepad 애니메이션 스킬은(는) 무엇을 하나요?

버전: makepad-widgets (dev 브랜치) | 최종 업데이트: 2026-01-19

업데이트 확인: https://crates.io/crates/makepad-widgets

Makepad 애니메이션 전문가입니다. 사용자에게 다음과 같이 도움을 제공합니다:

  • 코드 작성: 아래 패턴을 따라 애니메이션 코드 생성
  • 질문 응답: 상태, 전환, 타임라인 설명

문서

자세한 문서는 로컬 파일을 참조하세요:

  • ./references/animation-system.md - 완전한 애니메이션 참조

고급 패턴

프로덕션 준비 애니메이션 패턴은 _base/ 디렉토리 참조:

패턴설명
06-animator-basics애니메이터 기본
07-easing-functions이징 및 타이밍
08-keyframe-animation복잡한 키프레임

중요: 문서 완전성 확인

질문에 답변하기 전, Claude는 반드시:

  1. 위에 나열된 관련 참조 파일 읽기
  2. 파일 읽기 실패 또는 파일이 비어 있는 경우:
    • 사용자에게 알림: "로컬 문서가 불완전합니다. /sync-crate-skills makepad --force 명령어로 문서를 업데이트하는 것을 권장합니다."
    • SKILL.md 패턴 및 내장 지식을 기반으로 답변 제공
  3. 참조 파일이 존재하면, 그 내용을 답변에 포함

주요 패턴

1. 기본 호버 애니메이션

<Button> {
    text: "Hover Me"

    animator: {
        hover = {
            default: off

            off = {
                from: { all: Forward { duration: 0.15 } }
                apply: {
                    draw_bg: { color: #333333 }
                }
            }

            on = {
                from: { all: Forward { duration: 0.15 } }
                apply: {
                    draw_bg: { color: #555555 }
                }
            }
        }
    }
}

2. 다중 상태 애니메이션

<View> {
    animator: {
        hover = {
            default: off
            off = {
                from: { all: Forward { duration: 0.2 } }
                apply: { draw_bg: { color: #222222 } }
            }
            on = {
                from: { all: Forward { duration: 0.2 } }
                apply: { draw_bg: { color: #444444 } }
            }
        }

        pressed = {
            default: off
            off = {
                from: { all: Forward { duration: 0.1 } }
                apply: { draw_bg: { scale: 1.0 } }
            }
            on = {
                from: { all: Forward { duration: 0.1 } }
                apply: { draw_bg: { scale: 0.95 } }
            }
        }
    }
}

3. 포커스 상태 애니메이션

<TextInput> {
    animator: {
        focus = {
            default: off

            off = {
                from: { all: Forward { duration: 0.2 } }
                apply: {
                    draw_bg: {
                        border_color: #444444
                        border_size: 1.0
                    }
                }
            }

            on = {
                from: { all: Forward { duration: 0.2 } }
                apply: {
                    draw_bg: {
                        border_color: #0066CC
                        border_size: 2.0
                    }
                }
            }
        }
    }
}

4. 비활성화 상태

<Button> {
    animator: {
        disabled = {
            default: off

            off = {
                from: { all: Snap }
                apply: {
                    draw_bg: { color: #0066CC }
                    draw_text: { color: #FFFFFF }
                }
            }

            on = {
                from: { all: Snap }
                apply: {
                    draw_bg: { color: #333333 }
                    draw_text: { color: #666666 }
                }
            }
        }
    }
}

애니메이터 구조

속성설명
animator루트 애니메이션 컨테이너
{state} =상태 정의 (hover, pressed, focus, disabled)
default:초기 상태 값
{value} =상태 값 정의 (on, off, 사용자 정의)
from:전환 타임라인
apply:애니메이션할 속성

타임라인 유형 (Play 열거형)

유형설명
Forward { duration: f64 }선형 순방향 애니메이션
Snap즉시 변경, 전환 없음
Reverse { duration: f64, end: f64 }역방향 애니메이션
Loop { duration: f64, end: f64 }반복 애니메이션
BounceLoop { duration: f64, end: f64 }바운스 반복 애니메이션

이징 함수 (Ease 열거형)

// 기본
Linear

// 2차
InQuad, OutQuad, InOutQuad

// 3차
InCubic, OutCubic, InOutCubic

// 4차
InQuart, OutQuart, InOutQuart

// 5차
InQuint, OutQuint, InOutQuint

// 사인
InSine, OutSine, InOutSine

// 지수
InExp, OutExp, InOutExp

// 원형
InCirc, OutCirc, InOutCirc

// 탄성
InElastic, OutElastic, InOutElastic

// 백
InBack, OutBack, InOutBack

// 바운스
InBounce, OutBounce, InOutBounce

// 사용자 정의
ExpDecay { d1: f64, d2: f64 }
Bezier { cp0: f64, cp1: f64, cp2: f64, cp3: f64 }
Pow { begin: f64, end: f64 }

이징 사용하기

from: {
    all: Ease { duration: 0.3, ease: InOutQuad }
}

일반적인 상태

상태값트리거
hoveron, off마우스 진입/이탈
pressed / downon, off마우스 누름/해제
focuson, off포커스 획득/상실
disabledon, off위젯 활성화/비활성화
selectedon, off선택 변경

애니메이션 가능 속성

대부분의 draw_* 셰이더 uniform을 애니메이션할 수 있습니다:

  • 색상: color, border_color, shadow_color
  • 크기: border_size, border_radius, shadow_radius
  • 변환: scale, rotation, offset
  • 불투명도: opacity

코드 작성 시

  1. 항상 초기 상태에 default:를 설정하세요
  2. 부드러운 전환에는 Forward를 사용하세요
  3. 즉시 상태 변경(예: 비활성화)에는 Snap을 사용하세요
  4. 반응성을 위해 짧은 지속 시간(0.1-0.3초)을 유지하세요
  5. draw_bg, draw_text 등의 셰이더 uniform을 애니메이션하세요

Rust API (AnimatorImpl 트레이트)

pub trait AnimatorImpl {
    // 상태로 애니메이션
    fn animator_play(&mut self, cx: &mut Cx, state: &[LiveId; 2]);

    // 상태로 즉시 전환 (애니메이션 없음)
    fn animator_cut(&mut self, cx: &mut Cx, state: &[LiveId; 2]);

    // 현재 상태 확인
    fn animator_in_state(&self, cx: &Cx, state: &[LiveId; 2]) -> bool;
}

// 사용 예시
fn handle_event(&mut self, cx: &mut Cx, event: &Event, scope: &mut Scope) {
    match event.hits(cx, self.area()) {
        Hit::FingerHoverIn(_) => {
            self.animator_play(cx, id!(hover.on));
        }
        Hit::FingerHoverOut(_) => {
            self.animator_play(cx, id!(hover.off));
        }
        Hit::FingerDown(_) => {
            self.animator_play(cx, id!(pressed.on));
        }
        Hit::FingerUp(_) => {
            self.animator_play(cx, id!(pressed.off));
        }
        _ => {}
    }
}

질문에 답변할 때

  1. 상태는 독립적입니다 - 여러 상태가 동시에 활성화될 수 있습니다
  2. 애니메이션은 상태가 해당 값에 도달할 때 속성을 적용합니다
  3. from은 애니메이션 방법을 정의하고, apply는 애니메이션할 대상을 정의합니다
  4. Makepad는 이전 값과 새 값 사이를 자동으로 보간합니다
  5. Rust에서 애니메이션 상태를 참조하려면 id!(state.value) 매크로를 사용하세요

Individual skills in this repo

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

Desesbraker/agentes-vip

Skill for discovering and researching autonomous AI agents, tools, and ecosystems using the AgentFolio directory.

Desesbraker/agentes-vip

Advanced JavaScript animation library skill for creating complex, high-performance web animations.

Desesbraker/agentes-vip

Audit and fix animation performance issues including layout thrashing, compositor properties, scroll-linked motion, and blur effects. Use when animations stutter, transitions jank, or reviewing CSS/JS animation performance.

Desesbraker/agentes-vip

Internationalization and localization patterns. Detecting hardcoded strings, managing translations, locale files, RTL support.

Desesbraker/agentes-vip

AI-powered animation tool for creating motion in logos, UI, icons, and social media assets.

Desesbraker/agentes-vip

Best practices for Remotion - Video creation in React

Desesbraker/agentes-vip

Generate walkthrough videos from Stitch projects using Remotion with smooth transitions, zooming, and text overlays

Desesbraker/agentes-vip

Seek and analyze video content using Memories.ai Large Visual Memory Model for persistent video intelligence

Desesbraker/agentes-vip

Three.js animation - keyframe animation, skeletal animation, morph targets, animation mixing. Use when animating objects, playing GLTF animations, creating procedural motion, or blending animations.

Desesbraker/agentes-vip

Automate TikTok tasks via Rube MCP (Composio): upload/publish videos, post photos, manage content, and view user profiles/stats. Always search tools first for current schemas.

Desesbraker/agentes-vip

Video and audio perception, indexing, and editing. Ingest files/URLs/live streams, build visual/spoken indexes, search with timestamps, edit timelines, add overlays/subtitles, generate media, and create real-time alerts.

Desesbraker/agentes-vip

Upload, stream, search, edit, transcribe, and generate AI video and audio using the VideoDB SDK.

Desesbraker/agentes-vip

Automate YouTube tasks via Rube MCP (Composio): upload videos, manage playlists, search content, get analytics, and handle comments. Always search tools first for current schemas.

Desesbraker/agentes-vip

Extract transcripts from YouTube videos and generate comprehensive, detailed summaries using intelligent analysis frameworks

Desesbraker/agentes-vip

Generates high-converting Next.js/React landing pages with Tailwind CSS. Uses PAS, AIDA, and BAB frameworks for optimized copy/components (Heroes, Features, Pricing). Focuses on Core Web Vitals/SEO.

Desesbraker/agentes-vip

You know a portfolio isn't a resume - it's a first impression that needs to convert. You balance creativity with usability. You understand that hiring managers spend 30 seconds on each portfolio. You make those 30 seconds count. You help people stand out without being gimmicky.

관련 스킬