Communitygithub.com

AlperTuncOrtak/crypto-data-pipeline

CRITIQUE : Utilisé pour le système d'animation Makepad. Déclenché sur : makepad animation, makepad animator, makepad hover, makepad state, makepad transition, "from: { all: Forward", makepad pressed, makepad 动画, makepad 状态, makepad 过渡, makepad 悬停效果

Qu'est-ce que crypto-data-pipeline ?

Cette compétence est conçue pour les développeurs utilisant le framework UI Makepad, en particulier son système d'animation basé sur des états et des transitions. Elle fournit des instructions détaillées, des modèles de code et des références pour créer des animations réactives, comme des survols, des pressions, des états de focus et des désactivations. L'utilisateur peut générer du code d'animation en Rust pour Makepad, et l'IA explique comment structurer les animations avec l'animator, définir des états (hover, pressed, focus, disabled) et utiliser des fonctions d'easing (InOutQuad, Elastic, etc.). Elle supporte également l'API Rust (AnimatorImpl trait) pour le contrôle programmatique des animations. Cette compétence est utile pour tout projet utilisant Makepad nécessitant des retours visuels interactifs, des transitions fluides ou des animations complexes, et elle s'appuie sur une documentation locale (animation-system.md) pour des cas avancés.

Compatible avec✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/AlperTuncOrtak/crypto-data-pipeline/tree/HEAD/skills/makepad-animation

Demander à votre IA préférée

Ouvre une nouvelle conversation avec cette compétence d'agent déjà préchargée.

Documentation

Compétence d'Animation Makepad

Version : makepad-widgets (branche dev) | Dernière mise à jour : 2026-01-19

Vérifiez les mises à jour : https://crates.io/crates/makepad-widgets

Vous êtes un expert en animations Makepad. Aidez les utilisateurs en :

  • Écrivant du code : Générez du code d'animation en suivant les motifs ci-dessous
  • Répondant aux questions : Expliquez les états, transitions et timelines

Quand l'utiliser

  • Vous devez construire ou déboguer des animations, transitions, états de survol ou timelines d'animator dans Makepad.
  • La tâche implique animator, changements d'état, easings, keyframes ou retour d'interaction visuelle.
  • Vous souhaitez des motifs d'animation spécifiques à Makepad plutôt que des conseils génériques sur l'UI Rust.

Documentation

Consultez les fichiers locaux pour une documentation détaillée :

  • ./references/animation-system.md - Référence complète des animations

Motifs avancés

Pour des motifs d'animation prêts pour la production, voir le répertoire _base/ :

MotifDescription
06-animator-basicsFondamentaux de l'animator
07-easing-functionsEasing et temporisation
08-keyframe-animationKeyframes complexes

IMPORTANT : Vérification de l'exhaustivité de la documentation

Avant de répondre aux questions, Claude DOIT :

  1. Lire le(s) fichier(s) de référence pertinent(s) listé(s) ci-dessus
  2. Si la lecture du fichier échoue ou si le fichier est vide :
    • Informer l'utilisateur : "La documentation locale est incomplète. Il est recommandé d'exécuter /sync-crate-skills makepad --force pour mettre à jour la documentation."
    • Répondre quand même en se basant sur les motifs de SKILL.md et les connaissances intégrées
  3. Si le fichier de référence existe, intégrer son contenu dans la réponse

Motifs clés

1. Animation de survol de base

<Button> {
    text: "Survolez-moi"

    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. Animation multi-états

<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. Animation de l'état de focus

<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. État désactivé

<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 }
                }
            }
        }
    }
}

Structure de l'animator

PropriétéDescription
animatorConteneur racine d'animation
{state} =Définition d'état (hover, pressed, focus, disabled)
default:Valeur d'état initiale
{value} =Définition de valeur d'état (on, off, custom)
from:Timeline de transition
apply:Propriétés à animer

Types de timeline (Play Enum)

TypeDescription
Forward { duration: f64 }Animation linéaire avant
SnapChangement instantané, sans transition
Reverse { duration: f64, end: f64 }Animation inversée
Loop { duration: f64, end: f64 }Animation en boucle
BounceLoop { duration: f64, end: f64 }Animation de rebond en boucle

Fonctions d'easing (Ease Enum)

// Basique
Linear

// Quadratiques
InQuad, OutQuad, InOutQuad

// Cubiques
InCubic, OutCubic, InOutCubic

// Quartiques
InQuart, OutQuart, InOutQuart

// Quintiques
InQuint, OutQuint, InOutQuint

// Sinusoïdales
InSine, OutSine, InOutSine

// Exponentielles
InExp, OutExp, InOutExp

// Circulaires
InCirc, OutCirc, InOutCirc

// Élastiques
InElastic, OutElastic, InOutElastic

// Back
InBack, OutBack, InOutBack

// Bounce
InBounce, OutBounce, InOutBounce

// Personnalisées
ExpDecay { d1: f64, d2: f64 }
Bezier { cp0: f64, cp1: f64, cp2: f64, cp3: f64 }
Pow { begin: f64, end: f64 }

Utilisation de l'easing

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

États courants

ÉtatValeursDéclencheur
hoveron, offEntrée/sortie de la souris
pressed / downon, offAppui/relâchement de la souris
focuson, offGain/perte de focus
disabledon, offWidget activé/désactivé
selectedon, offChangement de sélection

Propriétés animables

La plupart des uniforms de shader draw_* peuvent être animés :

  • Couleurs : color, border_color, shadow_color
  • Tailles : border_size, border_radius, shadow_radius
  • Transformations : scale, rotation, offset
  • Opacité : opacity

Lors de l'écriture de code

  1. Toujours définir default: pour l'état initial
  2. Utiliser Forward pour les transitions fluides
  3. Utiliser Snap pour les changements d'état instantanés (comme désactivé)
  4. Garder les durées courtes (0.1-0.3s) pour une sensation de réactivité
  5. Animer les uniforms de shader dans draw_bg, draw_text, etc.

API Rust (Trait AnimatorImpl)

pub trait AnimatorImpl {
    // Animer vers un état
    fn animator_play(&mut self, cx: &mut Cx, state: &[LiveId; 2]);

    // Passer à un état (sans animation)
    fn animator_cut(&mut self, cx: &mut Cx, state: &[LiveId; 2]);

    // Vérifier l'état actuel
    fn animator_in_state(&self, cx: &Cx, state: &[LiveId; 2]) -> bool;
}

// Exemple d'utilisation
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));
        }
        _ => {}
    }
}

Lors de la réponse aux questions

  1. Les états sont indépendants - plusieurs peuvent être actifs simultanément
  2. L'animation applique les propriétés lorsque l'état atteint cette valeur
  3. from définit COMMENT animer, apply définit QUOI animer
  4. Makepad effectue une interpolation entre les anciennes et nouvelles valeurs automatiquement
  5. Utilisez la macro id!(state.value) pour référencer les états d'animation en Rust

Limitations

  • Utilisez cette compétence uniquement lorsque la tâche correspond clairement au cadre décrit ci-dessus.
  • Ne considérez pas la sortie comme un substitut à une validation, un test ou une revue d'expert spécifiques à l'environnement.
  • Arrêtez-vous et demandez des clarifications si les entrées, autorisations, limites de sécurité ou critères de succès requis sont manquants.

Individual skills in this repo

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

AlperTuncOrtak/crypto-data-pipeline

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

AlperTuncOrtak/crypto-data-pipeline

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

AlperTuncOrtak/crypto-data-pipeline

One sentence - what this skill does and when to invoke it

AlperTuncOrtak/crypto-data-pipeline

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.

AlperTuncOrtak/crypto-data-pipeline

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

AlperTuncOrtak/crypto-data-pipeline

Pull a YouTube video transcript into a queryable markdown vault with yt-dlp subtitle discovery, VTT cleanup, metadata frontmatter, and capture-seed stubs.

AlperTuncOrtak/crypto-data-pipeline

Expert in building portfolios that actually land jobs and clients - not just showing work, but creating memorable experiences. Covers developer portfolios, designer portfolios, creative portfolios, and portfolios that convert visitors into opportunities.

AlperTuncOrtak/crypto-data-pipeline

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.

AlperTuncOrtak/crypto-data-pipeline

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

AlperTuncOrtak/crypto-data-pipeline

Best practices for Remotion - Video creation in React

AlperTuncOrtak/crypto-data-pipeline

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

AlperTuncOrtak/crypto-data-pipeline

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

AlperTuncOrtak/crypto-data-pipeline

Writes complete, structured landing pages optimized for SEO ranking, AEO citation, and visitor conversion. Activate when the user wants to write or generate a landing page for a product, service, or offer.

AlperTuncOrtak/crypto-data-pipeline

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

AlperTuncOrtak/crypto-data-pipeline

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.

AlperTuncOrtak/crypto-data-pipeline

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.

AlperTuncOrtak/crypto-data-pipeline

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

AlperTuncOrtak/crypto-data-pipeline

One sentence - what this skill does and when to invoke it

AlperTuncOrtak/crypto-data-pipeline

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.

AlperTuncOrtak/crypto-data-pipeline

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

Skills associés